Skip to content

Commit

Permalink
chore(go): 1.17.1 (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenithar authored Sep 20, 2021
1 parent 2862e52 commit 2ad7a81
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Download a [release](https://github.com/elastic/harp/releases) or build from sou

```sh
$ go version
go version go1.17 linux/amd64
go version go1.17.1 linux/amd64
```

> Simple go version manager - <https://github.com/stefanmaric/g>
Expand Down
1 change: 0 additions & 1 deletion build/mage/docker/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ func Release(cmd *artifact.Command) func() error {
"--build-arg", fmt.Sprintf("VCS_REF=%s", git.Revision),
"--build-arg", fmt.Sprintf("RELEASE=%s", relVer.String()),
"--cache-from", "elastic/harp-tools",
"--cache-from", fmt.Sprintf("elastic/%s:artifacts-%s", cmd.Kebab(), relVer.String()),
".",
)

Expand Down
4 changes: 2 additions & 2 deletions build/mage/golang/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (

// Keep only last 2 versions
var goVersions = []string{
"~1.17",
"~1.16.6",
"~1.17.1",
"~1.16.8",
}

func init() {
Expand Down
2 changes: 1 addition & 1 deletion build/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func NewInfo() Info {
GitCommit: Commit,
BuildTags: BuildTags,
BuildDate: BuildDate,
GoVersion: fmt.Sprintf("go version %s %s/%s", runtime.Version(), runtime.GOOS, runtime.GOARCH),
GoVersion: fmt.Sprintf("%s %s/%s", runtime.Version(), runtime.GOOS, runtime.GOARCH),
BuildDeps: depsFromBuildInfo(),
HarpSdkVersion: sdkVersion,
}
Expand Down
3 changes: 2 additions & 1 deletion tools/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build mage
// +build mage

package main
Expand Down Expand Up @@ -47,5 +48,5 @@ func (Go) Vendor() error {
// Tools updates tools from package
func (Go) Tools() error {
color.Blue("## Installing tools")
return sh.RunV("go", "run", "github.com/izumin5210/gex/cmd/gex", "--build")
return sh.RunV("go", "generate", "tools.go")
}
37 changes: 20 additions & 17 deletions tools/tools.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ad7a81

Please sign in to comment.