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

SHA256 not supported #69812

Closed
neochine opened this issue Oct 8, 2024 · 2 comments
Closed

SHA256 not supported #69812

neochine opened this issue Oct 8, 2024 · 2 comments

Comments

@neochine
Copy link

neochine commented Oct 8, 2024

Go version

go version go1.23.2 linux/amd64

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/opt/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/opt/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/opt/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.2'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2975773539=/tmp/go-build -gno-record-gcc-switches'

What did you do?

go install codeberg.org/neochine/gonix@latest
warning: GOPATH set to GOROOT (/opt/go) has no effect
go: codeberg.org/neochine/gonix@latest: codeberg.org/neochine/gonix@v0.0.1: invalid version: git fetch -f origin refs/heads/:refs/heads/ refs/tags/:refs/tags/ in /opt/go/pkg/mod/cache/vcs/ccc416ebf798b6d69afbb3ffa29b6559b233b8aac716cdb17a6ad00f5566b67c: exit status 128:
fatal: mismatched algorithms: client sha1; server sha256

What did you see happen?

Error

What did you expect to see?

Install successfully. Re initialized project with sha1 and now its installable, since project initilazed with git init --object-format=sha256 is not

Reproduction

git clone https://codeberg.org/Neochine/gonix/
cd gonix
rm .git -r
Create sha256 repo using codeberg
git init --object-format=sha256
git add . && git commit -m "Gonix"
git remote add origin yourlink
git push -u origin master
git tag v0.0.1
git push origin v0.0.1
go install codeberg.org/yourusername/gonix@latest

@seankhliao
Copy link
Member

Duplicate of #68359

@seankhliao seankhliao marked this as a duplicate of #68359 Oct 8, 2024
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2024
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

No branches or pull requests

3 participants