Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnjk committed Aug 31, 2024
1 parent 8aae955 commit 4339d9e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
go-version: '1.22.2'

- name: 构建
run: go build -v ./app.go version/forge.go
run: go build -v ./app.go forge.go

- name: capture build artifacts
uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
check-latest: true

- name: Build
run: go build -o dist/${{ env.BUILD_NAME }} app.go version/forge.go && ls dist
run: go build -o dist/${{ env.BUILD_NAME }} app.go forge.go && ls dist

- name: Get version
id: get_version
Expand Down
2 changes: 1 addition & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"time"

"./version/forge"
"./forge"

Check failure on line 14 in app.go

View workflow job for this annotation

GitHub Actions / build

"./forge" is relative, but relative import paths are not supported in module mode
) //导入
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "正在扫描环境")
Expand Down
File renamed without changes.

0 comments on commit 4339d9e

Please sign in to comment.