.devcontainer/Dockerfile: gopls@latest no longer supports golang 1.23-bullseye #2122

Closed
opened 2025-11-20 07:04:12 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @Bilgeworth on GitHub (Jul 29, 2025).

Describe the problem

When following the vs code developer container section of the contributors guide, the container will fail to build since gopls@latest now requires golang 1.24.

To Reproduce

Steps to reproduce the behavior:

  1. Fork the NetBird repository
  2. Clone your forked repository
  3. Go into the repository folder
  4. Add the original NetBird repository as upstream to your forked repository
  5. Install all Go dependencies
  6. Open the project folder in Visual Studio Code:
  7. Click on the "Reopen in Container" button in the bottom-right corner of VS Code.

Output:
174.1 Processing triggers for libc-bin (2.31-13+deb11u13) ...
174.5 go: downloading golang.org/x/tools v0.35.0
174.5 go: downloading golang.org/x/tools/gopls v0.20.0
175.0 go: golang.org/x/tools/gopls@latest: golang.org/x/tools/gopls@v0.20.0 requires go >= 1.24.2 (running go 1.23.11; GOTOOLCHAIN=local)

Expected behavior

Container builds, ready to run the test suite

Are you using NetBird Cloud?

Using the cloned github repo

NetBird version

0.51.2

Is any other VPN software installed?

No

I was able to get it to build by either changing the two files in .devcontainer to point at go 1.24 or by removing the gopls@latest line from Dockerfile

Originally created by @Bilgeworth on GitHub (Jul 29, 2025). **Describe the problem** When following the vs code developer container section of the contributors guide, the container will fail to build since gopls@latest now requires golang 1.24. **To Reproduce** Steps to reproduce the behavior: 1. [Fork](https://guides.github.com/activities/forking/#fork) the NetBird repository 2. Clone your forked repository 3. Go into the repository folder 4. Add the original NetBird repository as `upstream` to your forked repository 5. Install all Go dependencies 6. Open the project folder in Visual Studio Code: 7. Click on the "Reopen in Container" button in the bottom-right corner of VS Code. Output: 174.1 Processing triggers for libc-bin (2.31-13+deb11u13) ... 174.5 go: downloading [golang.org/x/tools](http://golang.org/x/tools) v0.35.0 174.5 go: downloading [golang.org/x/tools/gopls](http://golang.org/x/tools/gopls) v0.20.0 175.0 go: [golang.org/x/tools/gopls@latest](http://golang.org/x/tools/gopls@latest): [golang.org/x/tools/gopls@v0.20.0](http://golang.org/x/tools/gopls@v0.20.0) requires go >= 1.24.2 (running go 1.23.11; GOTOOLCHAIN=local) **Expected behavior** Container builds, ready to run the test suite **Are you using NetBird Cloud?** Using the cloned github repo **NetBird version** 0.51.2 **Is any other VPN software installed?** No I was able to get it to build by either changing the two files in .devcontainer to point at go 1.24 or by removing the gopls@latest line from Dockerfile
saavagebueno added the triage-needed label 2025-11-20 07:04:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2122