microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.31k stars 4.25k forks source link

[Package Issue]: zig.zig #117075

Open lunacd opened 10 months ago

lunacd commented 10 months ago

Please confirm these before moving forward

Category of the issue

Installation issue.

Brief description of your issue

Trying to compile code with the installed zig fails with unable to find zig installation directory: FileNotFound.

See: https://github.com/ziglang/zig/issues/16670.

This happens because the zig binary expects its lib folder to live in the same directory. The winget installer script creates a link to the zig binary in C:\Users\...\AppData\Local\Microsoft\WinGet\Links. This causes zig to be unable to locate its lib folder.

Steps to reproduce

Install zig and run:

zig cc test.c

Actual behavior

Fails with unable to find zig installation directory: FileNotFound.

Expected behavior

Compilation succeds.

Environment

Windows Package Manager v1.5.2201
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.2134
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.2201.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Screenshots and Logs

No response

microsoft-github-policy-service[bot] commented 10 months ago

Hello @lunacd,

This package appears to depend on .dlls that aren't available via symlink.

This package is blocked until support for zipped binaries is implemented in:

Be sure to add your 👍 to the issue to help raise the priority and avoid posting "Me too!" messages to respect those who have subscribed to the issue.

Template: msftbot/blockingIssue/zipBinary

andrewrk commented 10 months ago

This package appears to depend on .dlls that aren't available via symlink.

This is incorrect. The zig.exe binary is statically linked.

The problem is that it looks for the lib directory relative to zig.exe. See this for more details: https://github.com/ziglang/zig/tree/0.11.0#installation

savfrom4 commented 3 months ago

hey, any updates on this issue? seems to still be present a year later