-
Notifications
You must be signed in to change notification settings - Fork 122
Debian Trixie migration for sonic-mgmt-common #211
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -34,4 +34,4 @@ require ( | |||||||||
| google.golang.org/protobuf v1.21.0 // indirect | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| go 1.21 | ||||||||||
| go 1.24.4 | ||||||||||
|
||||||||||
| go 1.24.4 | |
| go 1.24 | |
| toolchain go1.24.4 |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -69,6 +69,17 @@ $(TRANSFORMER_TEST_APP_BIN): $(TRANSFORMER_ALL_SRCS) $(TRANSLIB_MAIN_SRCS) $(YGO | |||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| $(YGOT_BINDS): $(YANG_FILES) | ||||||||||||||||||||||||||||||||||||||||||
| $(RM) $@ | ||||||||||||||||||||||||||||||||||||||||||
| # Go 1.24+ changed 'go mod vendor' to only include packages directly | ||||||||||||||||||||||||||||||||||||||||||
| # imported by the module. The ygot tool packages and their dependencies | ||||||||||||||||||||||||||||||||||||||||||
| # are used by 'go run' below but not directly imported, so they are no | ||||||||||||||||||||||||||||||||||||||||||
| # longer vendored automatically. Add them to vendor/modules.txt. | ||||||||||||||||||||||||||||||||||||||||||
| @grep -q 'github.com/openconfig/ygot/ygen' $(TOPDIR)/vendor/modules.txt 2>/dev/null || \ | ||||||||||||||||||||||||||||||||||||||||||
| ( echo "github.com/openconfig/gnmi/ctree" >> $(TOPDIR)/vendor/modules.txt && \ | ||||||||||||||||||||||||||||||||||||||||||
| echo "github.com/openconfig/gnmi/errlist" >> $(TOPDIR)/vendor/modules.txt && \ | ||||||||||||||||||||||||||||||||||||||||||
| echo "github.com/openconfig/gnmi/proto/gnmi" >> $(TOPDIR)/vendor/modules.txt && \ | ||||||||||||||||||||||||||||||||||||||||||
| echo "github.com/openconfig/ygot/genutil" >> $(TOPDIR)/vendor/modules.txt && \ | ||||||||||||||||||||||||||||||||||||||||||
| echo "github.com/openconfig/ygot/generator" >> $(TOPDIR)/vendor/modules.txt && \ | ||||||||||||||||||||||||||||||||||||||||||
| echo "github.com/openconfig/ygot/ygen" >> $(TOPDIR)/vendor/modules.txt ) | ||||||||||||||||||||||||||||||||||||||||||
| $(GO) run \ | ||||||||||||||||||||||||||||||||||||||||||
| --mod=vendor \ | ||||||||||||||||||||||||||||||||||||||||||
| $(TOPDIR)/vendor/github.com/openconfig/ygot/generator/generator.go \ | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+72
to
85
|
||||||||||||||||||||||||||||||||||||||||||
| # Go 1.24+ changed 'go mod vendor' to only include packages directly | |
| # imported by the module. The ygot tool packages and their dependencies | |
| # are used by 'go run' below but not directly imported, so they are no | |
| # longer vendored automatically. Add them to vendor/modules.txt. | |
| @grep -q 'github.com/openconfig/ygot/ygen' $(TOPDIR)/vendor/modules.txt 2>/dev/null || \ | |
| ( echo "github.com/openconfig/gnmi/ctree" >> $(TOPDIR)/vendor/modules.txt && \ | |
| echo "github.com/openconfig/gnmi/errlist" >> $(TOPDIR)/vendor/modules.txt && \ | |
| echo "github.com/openconfig/gnmi/proto/gnmi" >> $(TOPDIR)/vendor/modules.txt && \ | |
| echo "github.com/openconfig/ygot/genutil" >> $(TOPDIR)/vendor/modules.txt && \ | |
| echo "github.com/openconfig/ygot/generator" >> $(TOPDIR)/vendor/modules.txt && \ | |
| echo "github.com/openconfig/ygot/ygen" >> $(TOPDIR)/vendor/modules.txt ) | |
| $(GO) run \ | |
| --mod=vendor \ | |
| $(TOPDIR)/vendor/github.com/openconfig/ygot/generator/generator.go \ | |
| # Run the ygot generator through normal module resolution instead of | |
| # mutating vendor/modules.txt at build time. Editing vendor metadata | |
| # in-place is not reproducible and can leave modules.txt invalid. | |
| $(GO) run \ | |
| --mod=mod \ | |
| github.com/openconfig/ygot/generator \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pip install uses a hard-coded wheel filename (sonic_yang_models-1.0-py3-none-any.whl) but the downloaded artifact pattern is sonic_yang_models*.whl. If the wheel version/build tag changes, the pipeline will fail even though the artifact was downloaded. Consider installing via a wildcard/path discovery (or using the exact filename produced by the buildimage pipeline) to keep this step resilient to version bumps.