File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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') \
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')" \
Original file line number Diff line number Diff line change 1- //go:build disable_libgit2
1+ //go:build !enable_libgit2
22
33/*
44 * Copyright 2025 The CNAI Authors
Original file line number Diff line number Diff line change 1- //go:build !disable_libgit2
1+ //go:build enable_libgit2
22
33/*
44 * Copyright 2025 The CNAI Authors
You can’t perform that action at this time.
0 commit comments