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

[branch-24.03] Pin LXD dependency and add check for untracked changes in dependencies. #201

Closed
wants to merge 4 commits into from

Conversation

fnordahl
Copy link
Member

@fnordahl fnordahl commented Nov 6, 2024

Please review/merge commit by commit.

The golangci-lint snap is unfortunately not built for riscv64.

The snapcraft advanced grammar [0] does unfortunately not allow
us to express different build dependencies on different
architectures without repetition of the list of dependencies.

Making use of composition at the YAML level is also not possible
because merging sequences is just not supported [1].

0: https://snapcraft.io/docs/snapcraft-advanced-grammar
1: yaml/yaml#35 (comment)
Reported-at: alexmurray/golangci-lint-snap#3
Signed-off-by: Frode Nordahl <[email protected]>
The LXD Go client interface currently do not provide a versioned
URL for use in Go imports.

To work around this we update our update-gomod target to pin the
LXD dependency using `go get`.

Signed-off-by: Frode Nordahl <[email protected]>
The Launchpad build pipeline will run `go mod tidy`.

Consequently a rebuild could produce a `-dirty` version string if
any of our dependencies have changed.

While annoying, it is actually a nice feature, because we do want
to make concious choices about updates to our dependencies.

Check whether a `go mod tidy` would cause go.mod to change and fail
if it does.

Reported-at: https://launchpad.net/bugs/2075184
Signed-off-by: Frode Nordahl <[email protected]>
@fnordahl fnordahl requested a review from a team as a code owner November 6, 2024 11:01
@fnordahl
Copy link
Member Author

fnordahl commented Nov 6, 2024

Closing this in favor of #202

@fnordahl fnordahl closed this Nov 6, 2024
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

Successfully merging this pull request may close these issues.

1 participant