You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In previous discussion, there's a community contributor who wants to submit this package to microsoft/winget-pkgs repository. But the current release archive type *.tar.gz is not supported by winget.exe at the moment. Hence it breaks him/her enthusiasm.
According to your comment, this project uses Go Releaser. After investigating it, I find it's possible to switch archives format from *.tar.gz to *.zip for Windows only (I see many projects uses ZIP as archive on Windows, other archive types are rarely seen), by adding following configurations to release section of .goreleaser.yml.
# .goreleaser.ymlrelease:
- # Can be used to change the archive formats for specific GOOSs.# Most common use case is to archive as zip on Windows.format_overrides:
- # Which GOOS to override the format for.goos: windows# The format to use for the given GOOS.## Valid options are `tar.gz`, `tgz`, `tar.xz`, `txz`, tar`, `gz`, `zip`, `binary`, and `none`.format: zip
Since WinGet manifest version v1.9.0, it provides enhanced support of portable executables in ZIP archives. We can set ArchiveBinariesDependOnPath: true for those portable executables in ZIP archives. I think there's no more problems submitting this package to WinGet. ❤️
The text was updated successfully, but these errors were encountered:
For what?
Important
This is a continuing discussion of previously closed issue. Also there's an external issue which related to this.
Build environment
Note
I'm new to Golang and try building your project in an isolated Windows Sandbox instance.
Following outputs comes from the instance. There's NO Golang build environment installed on my host device.
go version go1.23.4 windows/amd64
GOPATH
is set to:C:\Users\WDAGUtilityAccount\go
Note
The Windows Sandbox instance is launched via PowerShell script
Tools/SandboxTest.ps1
.GoLang.Go
andGit.Git
are both installed viawinget.exe
. The$env:GOPATH
is automatically configured by Golang Installer. I haven't configured it manually.Description
In previous discussion, there's a community contributor who wants to submit this package to
microsoft/winget-pkgs
repository. But the current release archive type*.tar.gz
is not supported bywinget.exe
at the moment. Hence it breaks him/her enthusiasm.According to your comment, this project uses Go Releaser. After investigating it, I find it's possible to switch archives format from
*.tar.gz
to*.zip
for Windows only (I see many projects uses ZIP as archive on Windows, other archive types are rarely seen), by adding following configurations torelease
section of.goreleaser.yml
.Since WinGet manifest version
v1.9.0
, it provides enhanced support of portable executables in ZIP archives. We can setArchiveBinariesDependOnPath: true
for those portable executables in ZIP archives. I think there's no more problems submitting this package to WinGet. ❤️The text was updated successfully, but these errors were encountered: