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

build: update to Go 1.21.0 #474

Merged
merged 2 commits into from
Sep 7, 2023
Merged

Conversation

Roasbeef
Copy link
Member

No description provided.

@guggero
Copy link
Member

guggero commented Aug 29, 2023

I think we need to use 1.21.0-bullseye instead of -buster where we still use that.

@guggero
Copy link
Member

guggero commented Aug 30, 2023

The RPC and linter containers also need to switch to -alpine (or -bullseye where we do some apt install).

@jharveyb
Copy link
Collaborator

Can we move to bookworm (latest stable) instead?

@Roasbeef
Copy link
Member Author

Pushed up a new version that's moved to bookworm.

@guggero
Copy link
Member

guggero commented Sep 1, 2023

The RPC compilation docker file needs a change too, as we have hard-coded versions in there (to make sure the compiled/formatted output is deterministic). See lightningnetwork/lnd#7944 (comment) for more info.

Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there!
Linter seems to have been a flake, passes now.

Dockerfile Show resolved Hide resolved
dev.Dockerfile Outdated Show resolved Hide resolved
taprpc/Dockerfile Show resolved Hide resolved
Running with `buster` in CI gives us this error:
```
ERROR: failed to solve: golang:1.21.0-buster: docker.io/library/golang:1.21.0-buster: not found
```

So looks like the buster container is no longer being officially built.
So we'll switch to bookworm for now.
Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM 🎉

@Roasbeef Roasbeef merged commit 30036f5 into lightninglabs:main Sep 7, 2023
13 checks passed
guggero added a commit that referenced this pull request Sep 7, 2023
In #474 the base image was changed, which resulted in the Docker build
not working anymore. We'll follow up this commit with a CI check that
makes sure the docker image can be built.
@guggero guggero mentioned this pull request Sep 7, 2023
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.

3 participants