Ash258 / Scoop-GithubActions

Deprecated. Use https://github.com/shovel-org/GithubActions
MIT License
25 stars 18 forks source link

Test installation of manifests inside alpine linux #23

Closed Ash258 closed 4 years ago

Ash258 commented 5 years ago

14

Ash258 commented 5 years ago

This will be pain and impossible. Due to custom isntaller scripts, msi extraction, ...

Ash258 commented 5 years ago

Simple /SCOOP_HOME/bin/scoop.ps1 install is not working due to $env:COMSPEC

Maybe it could be done via install_app function call

Ash258 commented 5 years ago

install_app result:

Installing 'jx' (2.0.480) [64bit]
resolve-path : Cannot find path '/SCOOP/apps/jx/2.0.480' because it does not exist.
At /SCOOP/apps/scoop/current/lib/unix.ps1:20 char:12
+     return resolve-path $dir
+            ~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (/SCOOP/apps/jx/2.0.480:String) [Resolve-Path], ItemNotFoundException      
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.ResolvePathCommand

Checking hash of jx-windows-amd64.zip ... ok.
Extracting jx-windows-amd64.zip ... ^[OBdone.
Running pre-install script...
You cannot call a method on a null-valued expression.  
At /SCOOP/apps/scoop/current/lib/install.ps1:924 char:5
+     $path.split(';') | ForEach-Object {
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At /SCOOP/apps/scoop/current/lib/install.ps1:924 char:5
+     $path.split(';') | ForEach-Object {
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

Split-Path : Cannot bind argument to parameter 'Path' because it is null.
At /SCOOP/apps/scoop/current/lib/install.ps1:848 char:26
+     $parent = split-path $versiondir
+                          ~~~~~~~~~~~
+ CategoryInfo          : InvalidData: (:) [Split-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCommand

Linking \current => 
The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object.
At /SCOOP/apps/scoop/current/lib/install.ps1:875 char:7
+     & "$env:COMSPEC" /c mklink /j $currentdir $versiondir | out-null
+       ~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:String) [], RuntimeException
+ FullyQualifiedErrorId : BadExpression

attrib : The term 'attrib' is not recognized as the name of a cmdlet, function, script file, or operable program.
At /SCOOP/apps/scoop/current/lib/install.ps1:876 char:5
+     ~~~~~~
+ CategoryInfo          : ObjectNotFound: (attrib:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Creating shim for 'jx'.
Can't shim 'jx-windows-amd64.exe': File doesn't exist.
Ash258 commented 5 years ago

Further investigations will come after first release