Skip to content

Commit b2f616d

Browse files
committed
fix: build bug
Signed-off-by: xiexianbin <me@xiexianbin.cn>
1 parent 6f6fbfb commit b2f616d

File tree

9 files changed

+25
-17
lines changed

9 files changed

+25
-17
lines changed

.github/workflows/licensed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
name: Check licenses
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Install licensed
2525
run: |
2626
cd $RUNNER_TEMP

.github/workflows/release-new-action-version.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
default: 'manually test'
1010
push:
1111
tags:
12-
- "v*.*.*"
12+
- 'v*.*.*'
1313

1414
permissions:
1515
contents: write
@@ -19,10 +19,10 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323

2424
- name: Setup Go
25-
uses: actions/setup-go@v3
25+
uses: actions/setup-go@v5
2626

2727
- name: Check Go Version and Install Go Dep
2828
run: |

.github/workflows/workflow.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ jobs:
2727
runs-on: ubuntu-latest
2828
strategy:
2929
matrix:
30-
go: [ '1.19.11', '1.20.6', '1.21.10' ]
30+
go: ['1.21.13', '1.22.12', '1.23.11', '1.24.5']
3131
name: Go ${{ matrix.go }} test
3232
steps:
3333
- name: Checkout
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535

3636
- name: Setup Go
37-
uses: actions/setup-go@v4
37+
uses: actions/setup-go@v5
3838
with:
3939
go-version: ${{ matrix.go }}
4040

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ endif
4040

4141
# -X github.com/xiexianbin/go-actions-demo.version=$(VERSION)
4242
override LDFLAGS += \
43-
-X main.version=$(VERSION) \
44-
-X main.buildDate=$(BUILD_DATE) \
45-
-X main.gitCommit=$(GIT_COMMIT) \
46-
-X main.gitTreeState=$(GIT_TREE_STATE)
43+
-X xca.version=$(VERSION) \
44+
-X xca.buildDate=$(BUILD_DATE) \
45+
-X xca.gitCommit=$(GIT_COMMIT) \
46+
-X xca.gitTreeState=$(GIT_TREE_STATE)
4747

4848
ifneq ($(GIT_TAG),)
49-
override LDFLAGS += -X main.gitTag=${GIT_TAG}
49+
override LDFLAGS += -X xca.gitTag=${GIT_TAG}
5050
endif
5151

5252
SUB_BUILD_CMD ?= $(GOBUILD) -gcflags '${GCFLAGS}' -ldflags '${LDFLAGS} -extldflags -static'

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,20 @@ golang x-ca client, which can simple Sign Self Root/Second-Level CA, and sign fo
1111

1212
## install
1313

14+
- binary
15+
1416
```
15-
curl -Lfs -o xca https://github.com/x-ca/go-ca/releases/latest/download/xca-{linux|darwin|windows}-{amd64|arm64|s390x|ppc64le}
17+
curl -Lfs -o xca https://github.com/x-ca/go-ca/releases/latest/download/xca-{linux|darwin|windows}-{amd64|arm64|s390x|ppc64le}-{amd64|arm64}
1618
chmod +x xca
1719
mv xca /usr/local/bin/
1820
```
1921

22+
- source
23+
24+
```
25+
go install go.xiexianbin.cn/xca/cmd@latest
26+
```
27+
2028
## Help
2129

2230
```

cmd/createca.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919

2020
"github.com/spf13/cobra"
2121

22-
"go.xiexianbin.cn/x-ca/ca"
22+
"go.xiexianbin.cn/xca/ca"
2323
)
2424

2525
var (

cmd/sign.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020

2121
"github.com/spf13/cobra"
2222

23-
"go.xiexianbin.cn/x-ca/ca"
23+
"go.xiexianbin.cn/xca/ca"
2424
)
2525

2626
var (

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ package main
1515

1616
import (
1717
"github.com/spf13/cobra"
18-
xca "go.xiexianbin.cn/x-ca"
18+
xca "go.xiexianbin.cn/xca"
1919
)
2020

2121
// versionCmd represents the version command

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module go.xiexianbin.cn/x-ca
1+
module go.xiexianbin.cn/xca
22

33
go 1.21
44

0 commit comments

Comments
 (0)