goreleaser / goreleaser-cross

Docker image for Golang cross-compiling with CGO
MIT License
151 stars 26 forks source link

Build Fails Due to Version Mismatch: garble built with go1.22.3, used with go1.23.1 when using a custom gobinary #83

Closed animencoding closed 3 weeks ago

animencoding commented 3 weeks ago

OS: Manjaro Linux x86_64 Kernel: 6.10.11-2-MANJARO go version go1.23.1 linux/amd64 goreleaser installed via: pacman -S goreleaser

goreleaser version

  ____       ____      _
 / ___| ___ |  _ \ ___| | ___  __ _ ___  ___ _ __
| |  _ / _ \| |_) / _ \ |/ _ \/ _` / __|/ _ \ '__|
| |_| | (_) |  _ <  __/ |  __/ (_| \__ \  __/ |
 \____|\___/|_| \_\___|_|\___|\__,_|___/\___|_|
goreleaser: Deliver Go Binaries as fast and easily as possible
https://goreleaser.com

GitVersion:    2.1.0
GitCommit:     unknown
GitTreeState:  unknown
BuildDate:     unknown
BuiltBy:       unknown
GoVersion:     go1.22.5
Compiler:      gc
ModuleSum:     unknown
Platform:      linux/amd64

garble version

mvdan.cc/garble v0.12.1

Build settings:
      -buildmode exe
       -compiler gc
  DefaultGODEBUG httplaxcontentlength=1,httpmuxgo121=1,tls10server=1,tlsrsakex=1,tlsunsafeekm=1
     CGO_ENABLED 1
          GOARCH amd64
            GOOS linux
         GOAMD64 v1
  • only configurations files on  version: 2  are supported, yours is  version: 0 , please update your configuration
  • skipping announce, publish and validate...
  • loading environment variables
  • getting and validating git state
    • ignoring errors because this is a snapshot     error=git doesn't contain any tags. Either add a tag or use --snapshot
    • git state                                      commit=42ee5eec9f676090b8ec6c915e87031cb41ca4bf branch=master current_tag=v0.0.0 previous_tag=<unknown> dirty=false
    • pipe skipped                                   reason=disabled during snapshot mode
  • parsing tag
  • setting defaults
  • snapshotting
    • building snapshot...                           version=v0.0.0
  • checking distribution directory
    • cleaning dist
  • setting up metadata
  • writing release metadata
  • loading go mod information
  • build prerequisites
  • building binaries
    • building                                       binary=dist/windows-amd64_windows_amd64_v1/golang-cross.exe
    • building                                       binary=dist/linux-armhf_linux_arm_7/golang-cross
    • building                                       binary=dist/darwin-amd64_darwin_amd64_v1/golang-cross
  ⨯ release failed after 0s                  error=failed to build for windows_amd64_v1: exit status 1: garble was built with "go1.22.3" and is being used with "go1.23.1"; rebuild it with a command like:
    go install mvdan.cc/garble@latest