Skip to content

Commit 576d918

Browse files
committed
update to use golang 1.7 and add Mac M1 Chip release
1 parent 3c84143 commit 576d918

3 files changed

Lines changed: 68 additions & 7 deletions

File tree

go.mod

Lines changed: 53 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module github.com/upcmd/up
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/Masterminds/sprig/v3 v3.0.2
77
github.com/alecthomas/kingpin v2.2.6+incompatible
8-
github.com/eiannone/keyboard v0.0.0-20200508000154-caf4b762e807 // indirect
8+
github.com/eiannone/keyboard v0.0.0-20200508000154-caf4b762e807
99
github.com/fatih/color v1.9.0
1010
github.com/go-git/go-git/v5 v5.1.0
1111
github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c
@@ -14,16 +14,62 @@ require (
1414
github.com/mitchellh/mapstructure v1.1.2
1515
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
1616
github.com/olekukonko/tablewriter v0.0.4
17-
github.com/pelletier/go-toml v1.6.0 // indirect
1817
github.com/rivo/tview v0.0.0-20210624165335-29d673af0ce2
19-
github.com/spf13/afero v1.2.2 // indirect
20-
github.com/spf13/cast v1.3.1 // indirect
21-
github.com/spf13/jwalterweatherman v1.1.0 // indirect
2218
github.com/spf13/viper v1.6.2
2319
github.com/upcmd/go-spew v1.2.0
2420
github.com/upcmd/yq/v3 v3.3.2
2521
github.com/xlab/treeprint v1.0.0
26-
gopkg.in/ini.v1 v1.51.1 // indirect
2722
gopkg.in/yaml.v2 v2.3.0
2823
mvdan.cc/sh/v3 v3.1.1
2924
)
25+
26+
require (
27+
github.com/Masterminds/goutils v1.1.0 // indirect
28+
github.com/Masterminds/semver/v3 v3.0.3 // indirect
29+
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc // indirect
30+
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf // indirect
31+
github.com/emirpasic/gods v1.12.0 // indirect
32+
github.com/fsnotify/fsnotify v1.4.7 // indirect
33+
github.com/gdamore/encoding v1.0.0 // indirect
34+
github.com/gdamore/tcell/v2 v2.3.3 // indirect
35+
github.com/go-git/gcfg v1.5.0 // indirect
36+
github.com/go-git/go-billy/v5 v5.0.0 // indirect
37+
github.com/goccy/go-yaml v1.3.2 // indirect
38+
github.com/google/uuid v1.1.1 // indirect
39+
github.com/hashicorp/hcl v1.0.0 // indirect
40+
github.com/huandu/xstrings v1.2.0 // indirect
41+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
42+
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
43+
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd // indirect
44+
github.com/kylelemons/godebug v1.1.0 // indirect
45+
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
46+
github.com/magiconair/properties v1.8.1 // indirect
47+
github.com/mattn/go-colorable v0.1.4 // indirect
48+
github.com/mattn/go-isatty v0.0.11 // indirect
49+
github.com/mattn/go-runewidth v0.0.10 // indirect
50+
github.com/mitchellh/copystructure v1.0.0 // indirect
51+
github.com/mitchellh/go-homedir v1.1.0 // indirect
52+
github.com/mitchellh/reflectwalk v1.0.0 // indirect
53+
github.com/pelletier/go-toml v1.6.0 // indirect
54+
github.com/pkg/errors v0.8.1 // indirect
55+
github.com/rivo/uniseg v0.2.0 // indirect
56+
github.com/sergi/go-diff v1.1.0 // indirect
57+
github.com/spf13/afero v1.2.2 // indirect
58+
github.com/spf13/cast v1.3.1 // indirect
59+
github.com/spf13/cobra v0.0.5 // indirect
60+
github.com/spf13/jwalterweatherman v1.1.0 // indirect
61+
github.com/spf13/pflag v1.0.3 // indirect
62+
github.com/subosito/gotenv v1.2.0 // indirect
63+
github.com/xanzy/ssh-agent v0.2.1 // indirect
64+
golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073 // indirect
65+
golang.org/x/net v0.0.0-20200301022130-244492dfa37a // indirect
66+
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect
67+
golang.org/x/sys v0.0.0-20210309074719-68d13333faf2 // indirect
68+
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect
69+
golang.org/x/text v0.3.5 // indirect
70+
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect
71+
gopkg.in/ini.v1 v1.51.1 // indirect
72+
gopkg.in/op/go-logging.v1 v1.0.0-20160211212156-b2cb9fa56473 // indirect
73+
gopkg.in/warnings.v0 v0.1.2 // indirect
74+
gopkg.in/yaml.v3 v3.0.0-20200121175148-a6ecf24a6d71 // indirect
75+
)

release/rolling/20220112.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Changes
2+
3+
- upgrade to ues golang 1.7
4+
- support Mac M1 chip release with arch type arm64

up.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ vars:
99
dists_for_latest:
1010
- os: darwin
1111
arch: amd64
12+
- os: darwin
13+
arch: arm64
1214
- os: linux
1315
arch: amd64
1416
- os: windows
@@ -458,7 +460,9 @@ tasks:
458460
- rm -rf ./build
459461
- mkdir -p ./build/linux
460462
- mkdir -p ./build/mac
463+
- mkdir -p ./build/arm
461464
- GOOS=darwin GOARCH=amd64 go build -o build/mac/up app/up/*.go
465+
- GOOS=darwin GOARCH=arm64 go build -o build/m1/up app/up/*.go
462466
- GOOS=linux GOARCH=amd64 go build -o build/linux/up app/up/*.go
463467

464468
-
@@ -716,6 +720,13 @@ tasks:
716720
do: cp -f build/linux/up /bin/
717721
if: '{{ eq .os "Linux" }}'
718722

723+
- func: shell
724+
desc: |
725+
copy the binary to path in Mac with M1 Chip
726+
TODO: add if condition to use arch == arm64
727+
do: cp -f build/m1/up /bin/
728+
if: '{{ eq .os "Darwin" }}'
729+
719730
-
720731
name: testc
721732
desc: test all the function tests

0 commit comments

Comments
 (0)