Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zig refers to zig-dev #4

Closed
fleimgruber opened this issue Nov 3, 2023 · 6 comments
Closed

zig refers to zig-dev #4

fleimgruber opened this issue Nov 3, 2023 · 6 comments

Comments

@fleimgruber
Copy link

fleimgruber commented Nov 3, 2023

scoop update [email protected]
zig: 0.11.0 (latest version)
Latest versions for all apps are installed! For more information try 'scoop status'

But then when updating zig-dev this happens

scoop update zig-dev
zig-dev: 0.12.0-dev.1381+61861ef39 -> 0.12.0-dev.1388+d89266569
Updating one outdated app:
Updating 'zig-dev' (0.12.0-dev.1381+61861ef39 -> 0.12.0-dev.1388+d89266569)
Downloading new version
zig-windows-x86_64-0.12.0-dev.1388+d89266569.zip (75.9 MB) [=============================================] 100%
Checking hash of zig-windows-x86_64-0.12.0-dev.1388+d89266569.zip ... ok.
Uninstalling 'zig-dev' (0.12.0-dev.1381+61861ef39)
Removing shim 'zig.shim'.
Removing shim 'zig-dev.shim'.
Removing shim 'zig-dev.exe'.
Unlinking ~\scoop\apps\zig-dev\current
Installing 'zig-dev' (0.12.0-dev.1388+d89266569) [64bit] from scoop-zig bucket
Loading zig-windows-x86_64-0.12.0-dev.1388+d89266569.zip from cache
Extracting zig-windows-x86_64-0.12.0-dev.1388+d89266569.zip ... done.
Linking ~\scoop\apps\zig-dev\current => ~\scoop\apps\zig-dev\0.12.0-dev.1388+d89266569
Creating shim for 'zig'.
WARN  Overwriting shim ('zig.exe' -> 'zig.exe') installed from zig
Creating shim for 'zig-dev'.
Running post_install script...
'zig-dev' (0.12.0-dev.1388+d89266569) was installed successfully!

which then leads (via "Creating shim for 'zig'") to this bug (or at least this behavior is undocumented):

zig version
0.12.0-dev.1388+d89266569
@fleimgruber
Copy link
Author

More information as I read in the sources that the zig shim will point to zig-dev if zig is not installed. I uninstalled and installed zig again, which led to:

scoop uninstall zig
Uninstalling 'zig' (0.11.0).
Removing shim 'zig.shim.zig'.
Unlinking ~\scoop\apps\zig\current
Removing older version (0.9.1).
'zig' was uninstalled.

scoop install zig
Installing 'zig' (0.11.0) [64bit] from main bucket
Loading zig-windows-x86_64-0.11.0.zip from cache
Checking hash of zig-windows-x86_64-0.11.0.zip ... ok.
Extracting zig-windows-x86_64-0.11.0.zip ... done.
Linking ~\scoop\apps\zig\current => ~\scoop\apps\zig\0.11.0
Creating shim for 'zig'.
WARN  Overwriting shim ('zig.exe' -> 'zig.exe') installed from zig-dev
'zig' (0.11.0) was installed successfully!
'zig' suggests installing 'extras/vcredist2022'.

zig version
Could not create process with command '"C:\Users\LeimgruberF\scoop\apps\zig\current\zig.exe"  version'.

zig
Could not create process with command '"C:\Users\LeimgruberF\scoop\apps\zig\current\zig.exe" '.

@fleimgruber
Copy link
Author

fleimgruber commented Nov 3, 2023

This seems related? JanDeDobbeleer/oh-my-posh#2989, i.e. the space in ..." ' at the end of the process error looks suspicious.

@fleimgruber
Copy link
Author

So this should be the clue on what is going wrong: I looked into $SCOOP/apps/zig/0.11.0 and found the zig.exe to be 0 bytes in size.

@fleimgruber
Copy link
Author

See also ScoopInstaller/Scoop#5714

@enndubyu
Copy link
Owner

enndubyu commented Nov 7, 2023

Looking into this now!

@fleimgruber
Copy link
Author

Thanks! Please note that this might be better handled on a different level, see ScoopInstaller/Scoop#5720.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants