Skip to content

Commit 6e94312

Browse files
authored
ci(release): switch build tag from disable_libgit2 to enable_libgit2 (#236)
Signed-off-by: chlins <[email protected]>
1 parent 48e8789 commit 6e94312

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
GOARCH: ${{ matrix.goarch }}
7878
run: |
7979
go build \
80-
-tags "static system_libgit2" \
80+
-tags "static system_libgit2 enable_libgit2" \
8181
-ldflags "-X github.com/CloudNativeAI/modctl/pkg/version.GitVersion=${{ github.ref_name }} \
8282
-X github.com/CloudNativeAI/modctl/pkg/version.GitCommit=$(git rev-parse --short HEAD) \
8383
-X github.com/CloudNativeAI/modctl/pkg/version.BuildTime=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
@@ -94,7 +94,7 @@ jobs:
9494
CGO_LDFLAGS: "-lgit2 -lz -liconv -Wl,-rpath,/Users/runner/work/modctl/modctl/libgit2-1.5.1/build"
9595
run: |
9696
go build \
97-
-tags "static system_libgit2" \
97+
-tags "static system_libgit2 enable_libgit2" \
9898
-ldflags "-X github.com/CloudNativeAI/modctl/pkg/version.GitVersion=${{ github.ref_name }} \
9999
-X github.com/CloudNativeAI/modctl/pkg/version.GitCommit=$(git rev-parse --short HEAD) \
100100
-X github.com/CloudNativeAI/modctl/pkg/version.BuildTime=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \

pkg/source/git_gogit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build disable_libgit2
1+
//go:build !enable_libgit2
22

33
/*
44
* Copyright 2025 The CNAI Authors

pkg/source/git_libgit2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !disable_libgit2
1+
//go:build enable_libgit2
22

33
/*
44
* Copyright 2025 The CNAI Authors

0 commit comments

Comments
 (0)