Fix module path and remote

This commit is contained in:
ZuoZuo 2026-04-04 14:59:52 +08:00
parent 8601031005
commit e021b01d89
2 changed files with 6 additions and 6 deletions

View File

@ -4,18 +4,18 @@ Shared Go module for ChatApp services.
Module path: Module path:
`43.132.178.96/hy/ChatAppCommon.git` `gitea.haiyihy.com/hy/ChatAppCommon`
Install: Install:
```bash ```bash
go env -w GOPRIVATE=43.132.178.96 go env -w GOPRIVATE=gitea.haiyihy.com
git config --global url."git@43.132.178.96:".insteadOf "https://43.132.178.96/" git config --global url."ssh://git@gitea.haiyihy.com/".insteadOf "https://gitea.haiyihy.com/"
go get 43.132.178.96/hy/ChatAppCommon.git@v0.1.0 go get gitea.haiyihy.com/hy/ChatAppCommon@v0.1.0
``` ```
Import: Import:
```go ```go
import common "43.132.178.96/hy/ChatAppCommon.git" import common "gitea.haiyihy.com/hy/ChatAppCommon"
``` ```

2
go.mod
View File

@ -1,3 +1,3 @@
module 43.132.178.96/hy/ChatAppCommon.git module gitea.haiyihy.com/hy/ChatAppCommon
go 1.23.1 go 1.23.1