diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 59eb4dc..1cfba13 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 - name: Staticheck run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2869f05..0645f53 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version: '1.20' - run: go version - name: Run GoReleaser diff --git a/.goreleaser.yml b/.goreleaser.yml index 312b242..c774abb 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -8,14 +8,12 @@ builds: - id: tlock binary: tle main: ./cmd/tle/tle.go - flags: - - -trimpath env: - CGO_ENABLED=0 - asmflags: - - all=-trimpath={{.Env.HOME}} - gcflags: - - all=-trimpath={{.Env.HOME}} + flags: + - -trimpath + ldflags: + - -s -w -buildid= goos: - darwin - linux diff --git a/cmd/tle/commands/commands.go b/cmd/tle/commands/commands.go index 9c94f5f..ae97a4a 100644 --- a/cmd/tle/commands/commands.go +++ b/cmd/tle/commands/commands.go @@ -21,7 +21,7 @@ const ( // ============================================================================= -const usage = `tlock v1.1.0 -- github.com/drand/tlock +const usage = `tlock v1.1.1 -- github.com/drand/tlock Usage: tle [--encrypt] (-r round)... [--armor] [-o OUTPUT] [INPUT] diff --git a/go.mod b/go.mod index 2791556..cb9edb2 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/drand/tlock -go 1.19 +go 1.20 require ( filippo.io/age v1.1.1