mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: add /v2 to import module path (#9072)
* chore: add /v2 to import module path go mod requires semantic versioning with versions greater than 1.x This was a mechanical update by running: ``` go install github.com/marwan-at-work/mod/cmd/mod@latest mod upgrade ``` Migrate generated files to import /v2 * Fix gen
This commit is contained in:
+2
-2
@@ -96,7 +96,7 @@ fi
|
||||
ldflags=(
|
||||
-s
|
||||
-w
|
||||
-X "'github.com/coder/coder/buildinfo.tag=$version'"
|
||||
-X "'github.com/coder/coder/v2/buildinfo.tag=$version'"
|
||||
)
|
||||
|
||||
if [[ "$slim" == 0 ]]; then
|
||||
@@ -107,7 +107,7 @@ fi
|
||||
if [[ "$agpl" == 1 ]]; then
|
||||
# We don't use a tag to control AGPL because we don't want code to depend on
|
||||
# a flag to control AGPL vs. enterprise behavior.
|
||||
ldflags+=(-X "'github.com/coder/coder/buildinfo.agpl=true'")
|
||||
ldflags+=(-X "'github.com/coder/coder/v2/buildinfo.agpl=true'")
|
||||
fi
|
||||
build_args+=(-ldflags "${ldflags[*]}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user