Browse Source

update:修改本地内部库为线上引用

zoie 1 month ago
parent
commit
97ebed55fa
3 changed files with 5 additions and 8 deletions
  1. 2 5
      README.md
  2. 1 3
      go.mod
  3. 2 0
      go.sum

+ 2 - 5
README.md

@@ -10,11 +10,8 @@
 
 #### 导入线上库
 
-[//]: # (git config --global url."git@gogs.baozhida.cn/zoie/OAuth-core".insteadOf"https://gogs.baozhida.cn/zoie/OAuth-core")
-git config --global url."admin@gogs.baozhida.cn:zoie/OAuth-core".insteadOf "https://gogs.baozhida.cn/zoie/OAuth-core"
-
-9d18bb783ab3c0ecfa550e241a2de79fe1383278
-
+go env -w GOPRIVATE=https://gogs.baozhida.cn
+git config --global url."admin@gogs.baozhida.cn:23".insteadOf "https://gogs.baozhida.cn"
 
 #### 导入本地库
 

+ 1 - 3
go.mod

@@ -21,6 +21,7 @@ require (
 	github.com/swaggo/swag v1.8.12
 	github.com/unrolled/secure v1.12.0
 	go.uber.org/zap v1.19.1
+	gogs.baozhida.cn/zoie/OAuth-core v0.0.0-20240925064454-8216ca374395
 	golang.org/x/crypto v0.19.0
 	gorm.io/driver/mysql v1.3.5
 	gorm.io/gorm v1.23.8
@@ -37,7 +38,6 @@ require (
 	github.com/vmihailenco/msgpack/v5 v5.4.1
 	github.com/wcharczuk/go-chart/v2 v2.1.1
 	github.com/xuri/excelize/v2 v2.8.1
-	gogs.baozhida.cn/zoie/OAuth-core v0.0.0-00010101000000-000000000000
 	gonum.org/v1/plot v0.14.0
 )
 
@@ -141,6 +141,4 @@ require (
 	gorm.io/plugin/dbresolver v1.2.2 // indirect
 )
 
-replace gogs.baozhida.cn/zoie/OAuth-core => /Users/zoie/work/bzd_project/OAuth-core
-
 replace google.golang.org/grpc => google.golang.org/grpc v1.26.0

+ 2 - 0
go.sum

@@ -718,6 +718,8 @@ go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM=
 go.uber.org/zap v1.15.0/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc=
 go.uber.org/zap v1.19.1 h1:ue41HOKd1vGURxrmeKIgELGb3jPW9DMUDGtsinblHwI=
 go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI=
+gogs.baozhida.cn/zoie/OAuth-core v0.0.0-20240925064454-8216ca374395 h1:tjQ0IZ1xshHh9eVIqKsnwBhVHlx6qBBeM2lZDqbQzS4=
+gogs.baozhida.cn/zoie/OAuth-core v0.0.0-20240925064454-8216ca374395/go.mod h1:yzUh4ZQvH3cHzBbFYaPSu/4Np1foS1FF5Qs+Fbslvik=
 golang.org/x/arch v0.0.0-20210923205945-b76863e36670 h1:18EFjUmQOcUvxNYSkA6jO9VAiXCnxFY6NyDX0bHDmkU=
 golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
 golang.org/x/crypto v0.0.0-20180621125126-a49355c7e3f8/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=