From 17835eedbb83fc0a51ebaea36ce2824a6e6962e8 Mon Sep 17 00:00:00 2001 From: minefuto Date: Fri, 11 Jun 2021 00:47:50 +0900 Subject: [PATCH] use go1.16 --- .github/workflows/build.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .goreleaser.yml | 3 +-- README.md | 5 +---- go.mod | 2 +- 5 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 29e9c6b..db6c350 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,10 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.5 + - name: Set up Go 1.16 uses: actions/setup-go@v2 with: - go-version: ^1.15 + go-version: ^1.16 - name: Check out code into the Go module directory uses: actions/checkout@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c36b719..2796998 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,10 +15,10 @@ jobs: with: fetch-depth: 0 - - name: Set up Go 1.5 + name: Set up Go 1.16 uses: actions/setup-go@v2 with: - go-version: ^1.15 + go-version: ^1.16 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 diff --git a/.goreleaser.yml b/.goreleaser.yml index 18855b2..029f0cc 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -13,8 +13,7 @@ builds: binary: tp ldflags: - -s -w - - -X main.version={{.Version}} - - -X main.commit={{.ShortCommit}} + - -X main.version={{.Tag}} env: - CGO_ENABLED=0 goos: diff --git a/README.md b/README.md index e7d48bc..19dfb34 100644 --- a/README.md +++ b/README.md @@ -73,11 +73,8 @@ export TP_BLOCK_COMMAND='mkdir:rmdir:rm:mv' Also, disable keystroke of redirection(`<`, `>`) in `tp` for the same reason. ## Installation -This steps will install to `$GOPATH/bin`. ``` -$ git clone https://github.com/minefuto/tp.git -$ cd tp -$ make install +$ go install github.com/minefuto/tp@latest ``` ## Keybindings diff --git a/go.mod b/go.mod index c366439..f8366d7 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/minefuto/tp -go 1.15 +go 1.16 require ( github.com/cornfeedhobo/pflag v1.1.0