diff options
author | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-04-02 13:30:17 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-04-02 13:30:17 +0200 |
commit | 98085aad0eb01a3a9767f61fa5d36fb29809cc68 (patch) | |
tree | 839ee7c07cf5fe29e91340481f39c4a779e0f187 /wiki | |
parent | e976a655fae63ee0b0ed5ea304d695a247878dd8 (diff) |
add backtrace on how to configure golang with cgit
Diffstat (limited to 'wiki')
-rw-r--r-- | wiki/cgit-golang.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/wiki/cgit-golang.md b/wiki/cgit-golang.md new file mode 100644 index 0000000..5e67a7f --- /dev/null +++ b/wiki/cgit-golang.md @@ -0,0 +1,17 @@ +# Configure cgit repository to work with Go modules + +Are you seeing this error? + + $ go install git.sigsum.org/testing/cmd/hola@latest + go: git.sigsum.org/testing/cmd/hola@latest: unrecognized import path "git.sigsum.org/testing/cmd/hola": reading https://git.sigsum.org/testing/cmd/hola?go-get=1: 404 Not Found + +Remember to configure the cgit repository with [Go's meta tag][]. + +[Go's meta tag]: https://pkg.go.dev/cmd/go#hdr-Remote_import_paths + +## Backtrace + +This is where to look: + + root@getuid:~# rgrep go-import ~git/repositories + root@getuid:~# echo 'extra-head-content=<meta name="go-import" content="git.sigsum.org/testing git https://git.sigsum.org/testing">' > ~git/repositories/testing.git/cgitrc |