diff --git a/go.mod b/go.mod index 17a9f54..4d158fd 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,11 @@ module github.com/upcmd/up -go 1.16 +go 1.17 require ( github.com/Masterminds/sprig/v3 v3.0.2 github.com/alecthomas/kingpin v2.2.6+incompatible - github.com/eiannone/keyboard v0.0.0-20200508000154-caf4b762e807 // indirect + github.com/eiannone/keyboard v0.0.0-20200508000154-caf4b762e807 github.com/fatih/color v1.9.0 github.com/go-git/go-git/v5 v5.1.0 github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c @@ -14,16 +14,62 @@ require ( github.com/mitchellh/mapstructure v1.1.2 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 github.com/olekukonko/tablewriter v0.0.4 - github.com/pelletier/go-toml v1.6.0 // indirect github.com/rivo/tview v0.0.0-20210624165335-29d673af0ce2 - github.com/spf13/afero v1.2.2 // indirect - github.com/spf13/cast v1.3.1 // indirect - github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/viper v1.6.2 github.com/upcmd/go-spew v1.2.0 github.com/upcmd/yq/v3 v3.3.2 github.com/xlab/treeprint v1.0.0 - gopkg.in/ini.v1 v1.51.1 // indirect gopkg.in/yaml.v2 v2.3.0 mvdan.cc/sh/v3 v3.1.1 ) + +require ( + github.com/Masterminds/goutils v1.1.0 // indirect + github.com/Masterminds/semver/v3 v3.0.3 // indirect + github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc // indirect + github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf // indirect + github.com/emirpasic/gods v1.12.0 // indirect + github.com/fsnotify/fsnotify v1.4.7 // indirect + github.com/gdamore/encoding v1.0.0 // indirect + github.com/gdamore/tcell/v2 v2.3.3 // indirect + github.com/go-git/gcfg v1.5.0 // indirect + github.com/go-git/go-billy/v5 v5.0.0 // indirect + github.com/goccy/go-yaml v1.3.2 // indirect + github.com/google/uuid v1.1.1 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/huandu/xstrings v1.2.0 // indirect + github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect + github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/lucasb-eyer/go-colorful v1.2.0 // indirect + github.com/magiconair/properties v1.8.1 // indirect + github.com/mattn/go-colorable v0.1.4 // indirect + github.com/mattn/go-isatty v0.0.11 // indirect + github.com/mattn/go-runewidth v0.0.10 // indirect + github.com/mitchellh/copystructure v1.0.0 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mitchellh/reflectwalk v1.0.0 // indirect + github.com/pelletier/go-toml v1.6.0 // indirect + github.com/pkg/errors v0.8.1 // indirect + github.com/rivo/uniseg v0.2.0 // indirect + github.com/sergi/go-diff v1.1.0 // indirect + github.com/spf13/afero v1.2.2 // indirect + github.com/spf13/cast v1.3.1 // indirect + github.com/spf13/cobra v0.0.5 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.3 // indirect + github.com/subosito/gotenv v1.2.0 // indirect + github.com/xanzy/ssh-agent v0.2.1 // indirect + golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073 // indirect + golang.org/x/net v0.0.0-20200301022130-244492dfa37a // indirect + golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect + golang.org/x/sys v0.0.0-20210309074719-68d13333faf2 // indirect + golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect + golang.org/x/text v0.3.5 // indirect + golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect + gopkg.in/ini.v1 v1.51.1 // indirect + gopkg.in/op/go-logging.v1 v1.0.0-20160211212156-b2cb9fa56473 // indirect + gopkg.in/warnings.v0 v0.1.2 // indirect + gopkg.in/yaml.v3 v3.0.0-20200121175148-a6ecf24a6d71 // indirect +) diff --git a/release/rolling/20220112.md b/release/rolling/20220112.md new file mode 100644 index 0000000..91457ec --- /dev/null +++ b/release/rolling/20220112.md @@ -0,0 +1,4 @@ +## Changes + +- upgrade to ues golang 1.7 +- support Mac M1 chip release with arch type arm64 diff --git a/up.yml b/up.yml index b96cb6c..bfdca56 100644 --- a/up.yml +++ b/up.yml @@ -9,6 +9,8 @@ vars: dists_for_latest: - os: darwin arch: amd64 + - os: darwin + arch: arm64 - os: linux arch: amd64 - os: windows @@ -458,7 +460,9 @@ tasks: - rm -rf ./build - mkdir -p ./build/linux - mkdir -p ./build/mac + - mkdir -p ./build/arm - GOOS=darwin GOARCH=amd64 go build -o build/mac/up app/up/*.go + - GOOS=darwin GOARCH=arm64 go build -o build/m1/up app/up/*.go - GOOS=linux GOARCH=amd64 go build -o build/linux/up app/up/*.go - @@ -716,6 +720,13 @@ tasks: do: cp -f build/linux/up /bin/ if: '{{ eq .os "Linux" }}' + - func: shell + desc: | + copy the binary to path in Mac with M1 Chip + TODO: add if condition to use arch == arm64 + do: cp -f build/m1/up /bin/ + if: '{{ eq .os "Darwin" }}' + - name: testc desc: test all the function tests