Closed dgannon991 closed 6 months ago
What is your system and arch? On Darwin/M3 I am also getting errors (no panics), but:
➜ porter-1.0.17 go run mage.go Build
Installing protoc-gen-go@v1.28 into GOPATH/bin
# math/bits
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# internal/goos
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# internal/goarch
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# internal/coverage/rtcov
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# encoding
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# internal/goversion
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# internal/itoa
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# internal/unsafeheader
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# internal/goexperiment
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# google.golang.org/protobuf/internal/flags
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# internal/race
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# unicode/utf8
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# unicode
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# internal/godebugs
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# unicode/utf16
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# sync/atomic
compile: version "go1.21.3" does not match go tool version "go1.21.1"
# internal/cpu
compile: version "go1.21.3" does not match go tool version "go1.21.1"
Error: running "go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28" failed with exit code 1
This may be a good call for @troy0820 who is magic with these issues
Ah sorry, useful debugging information!
➜ porter-1.0.17 arch
x86_64
➜ porter-1.0.17 cat /etc/os-release
PRETTY_NAME="Ubuntu 23.10"
NAME="Ubuntu"
VERSION_ID="23.10"
VERSION="23.10 (Mantic Minotaur)"
VERSION_CODENAME=mantic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=mantic
LOGO=ubuntu-logo
Looking at the line it's blowing up on, it appears to expect the folder to be a git repostiory. Having a look through the magefiles it appears to be attempting to get the git information to use as the ldflags on the go build
command (https://github.com/getporter/magefiles/blob/85393f1aa46312c20979c4cd8398b662f538dc70/releases/build.go#L27)
Describe the bug
Downloading the build from https://github.com/getporter/porter/archive/refs/tags/v1.0.17.tar.gz and running
go run mage.go Build
fails with an errorTo Reproduce
Steps to reproduce the behavior:
go run mage.go Build
Expected behavior
The program builds successfully.
Porter Command and Output
Version
Copy the output of
porter version
belowAttempting with the latest v1.0.17