cacti icon indicating copy to clipboard operation
cacti copied to clipboard

DevContainer setup fails due to Go version mismatch and checksum error

Open dishathakral opened this issue 7 months ago • 2 comments

Describe the bug

The DevContainer setup fails during build when attempting to install the Go feature. The failure is caused by a mismatch between the Go version installed in the container (1.20.6) and the version required by dependencies (>= 1.24/1.25). Additionally, a checksum verification failure occurs while installing golangci-lint.

This prevents the DevContainer from being created successfully and blocks onboarding using the documented quickstart guide.


To Reproduce

  1. Clone the repository:

    git clone https://github.com/hyperledger-cacti/cacti.git
    
  2. Open the project in VS Code

  3. Run: Dev Containers: Reopen in Container

  4. Wait for the build process to start

  5. Observe failure during Go feature installation


Expected behavior

The DevContainer should build successfully and provide a working development environment without errors.


Logs/Stack traces

Relevant errors:

ERROR: Feature "Go" (ghcr.io/devcontainers/features/go) failed to install

checksum did not verify for golangci-lint

package requires go 1.24 / 1.25 but Go 1.20.6 is installed

invalid go version '1.25.0': must match format 1.23

Screenshots

Image

Cloud provider or hardware configuration:

Local development machine (not cloud)


Operating system name, version, build:

macOS (Apple Silicon)


Hyperledger Cactus release version or commit (git rev-parse --short HEAD):

Latest main branch (cloned from GitHub)


Hyperledger Cactus Plugins/Connectors Used

Not applicable (issue occurs during DevContainer setup before running connectors)


Additional context

This issue blocks new contributors from using the DevContainer-based setup described in the quickstart guide.

Possible causes:

  • Outdated Go version configured in DevContainer (1.20.6)
  • Dependencies requiring newer Go versions (>= 1.24/1.25)
  • Checksum mismatch during golangci-lint installation

Suggested fixes:

  • Update Go version in DevContainer to a compatible version
  • Pin compatible dependency versions
  • Investigate checksum mismatch during tool installation

dishathakral avatar May 02 '26 12:05 dishathakral

Hey @RafaelAPB @AndreAugusto11 is this an active issue, if yes i would really love to work upon it.

AgrimTawani avatar May 03 '26 10:05 AgrimTawani

Hi! I opened this issue and have already reproduced the problem locally.

I’m planning to work on a fix and would like to take this up. Please let me know if I can proceed with it.

Thanks!

dishathakral avatar May 03 '26 10:05 dishathakral