Generate licenses per GOOS/GOARCH build target#12611
Draft
Conversation
- Updated script/licenses to iterate through all GOOS/GOARCH combinations based on .goreleaser.yml
- Updated script/licenses-check to verify all new license files
- Generated licenses for: linux (386, arm, amd64, arm64), darwin (amd64, arm64), windows (386, amd64, arm64)
- Removed old GOOS-only license files (third-party-licenses.{linux,darwin,windows}.md)
- Added new GOOS-GOARCH license files (e.g., third-party-licenses.linux-amd64.md)
Co-authored-by: williammartin <1611510+williammartin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update script/licenses logic for build target licenses
Generate licenses per GOOS/GOARCH build target
Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
License generation only varied by GOOS, not GOARCH. Dependencies differ by architecture (e.g.,
golang.org/x/sysvsgolang.org/x/sys/unix), so license files must match actual build targets.Changes
.goreleaser.yml, iterates 9 combinations instead of 3 GOOS valuesthird-party-licenses.{goos}-{goarch}.mdreplacesthird-party-licenses.{goos}.mdWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
al.essio.dev/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli na0X8r.res user.name s(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli x64/pkg/tool/linux_amd64/compile-o user.email(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli ACCEPT user.name 7336651/b031/(dns block)dario.cat/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli nfig/composer/ve-deps=true credential.helpe/opt/hostedtoolcache/go/1.24.12/x64/pkg/tool/linux_amd64/compile epOnly,Imports,ImportMap,Module(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli u/13/cc1 credential.helpegcc(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli ache/go/1.24.12/x64/pkg/tool/lin-o credential.usernbash(dns block)go.mongodb.org/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli nfig/composer/ve-deps=true credential.helpe/opt/hostedtoolcache/go/1.24.12/x64/pkg/tool/linux_amd64/compile epOnly,Imports,ImportMap,Module(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli u/13/cc1 credential.helpegcc(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli ache/go/1.24.12/x64/pkg/tool/lin-o credential.usernbash(dns block)go.opentelemetry.io/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli nfig/composer/ve-deps=true credential.helpe/opt/hostedtoolcache/go/1.24.12/x64/pkg/tool/linux_amd64/compile epOnly,Imports,ImportMap,Module(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli u/13/cc1 credential.helpegcc(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli ache/go/1.24.12/x64/pkg/tool/lin-o credential.usernbash(dns block)go.yaml.in/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli nfig/composer/ve-deps=true credential.helpe/opt/hostedtoolcache/go/1.24.12/x64/pkg/tool/linux_amd64/compile epOnly,Imports,ImportMap,Module(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli u/13/cc1 credential.helpegcc(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli ache/go/1.24.12/x64/pkg/tool/lin-o credential.usernbash(dns block)google.golang.org/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli nfig/composer/ve-deps=true credential.helpe/opt/hostedtoolcache/go/1.24.12/x64/pkg/tool/linux_amd64/compile epOnly,Imports,ImportMap,Module(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli u/13/cc1 credential.helpegcc(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli ache/go/1.24.12/x64/pkg/tool/lin-o credential.usernbash(dns block)gopkg.in/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli nfig/composer/ve-deps=true credential.helpe/opt/hostedtoolcache/go/1.24.12/x64/pkg/tool/linux_amd64/compile epOnly,Imports,ImportMap,Module(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli u/13/cc1 credential.helpegcc(dns block)/home/REDACTED/go/bin/go-licenses go-licenses report ./... --template .github/licenses.tmpl --ignore github.com/cli/cli ache/go/1.24.12/x64/pkg/tool/lin-o credential.usernbash(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.