mirror of
https://github.com/git/git.git
synced 2024-05-09 13:46:08 +02:00
persistent-https: add go.mod to fix compile
GOPATH-based builds and non module-aware builds are being deprecated by golang upstream, which currently causes this to fail. This adds a barebones mod file to fix the build. The `persistent-https` code hasn't been touched for a long time but I assume this is preferable to simply removing it from the codebase. Before this change: ``` case $(go version) in \ "go version go"1.[0-5].*) EQ=" " ;; *) EQ="=" ;; esac && \ go build -o git-remote-persistent-https \ -ldflags "-X main._BUILD_EMBED_LABEL${EQ}" go: cannot find main module, but found .git/config in ../git to create a module there, run: cd ../.. && go mod init make: *** [git-remote-persistent-https] Error 1 ``` Ref: https://blog.golang.org/go116-module-changes. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
9198c13e34
commit
2a4bd315eb
|
@ -0,0 +1,3 @@
|
|||
module github.com/git/git/contrib/persistent-https
|
||||
|
||||
go 1.16
|
Loading…
Reference in New Issue