Skip to content

Commit

Permalink
chore(go): require go 1.18 (#322)
Browse files Browse the repository at this point in the history
* fix: require go 1.18

Fixes "predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)"

* Updated go to 1.18 in go.sum
* Ran go mod tidy

* docs(README): update required Go version

---------

Co-authored-by: Claudio d'Angelis <claudiodangelis@gmail.com>
  • Loading branch information
fgaz and claudiodangelis committed Feb 3, 2024
1 parent c1a8cc3 commit 8b35ad8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2,438 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ Receive files from mobile:

## Install the latest development version with Go

_Note: it requires go 1.8_

go get github.com/claudiodangelis/qrcp

If using go 1.18 or higher,
_Note: it requires go 1.18_

go install github.com/claudiodangelis/qrcp@latest

Expand Down
6 changes: 1 addition & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ Receive files from mobile:

## Install the latest development version with Go

_Note: it requires go 1.8_

go get github.com/claudiodangelis/qrcp

If using go 1.18 or higher,
_Note: it requires go 1.18_

go install github.com/claudiodangelis/qrcp@latest

Expand Down
28 changes: 26 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/claudiodangelis/qrcp

go 1.14
go 1.18

require (
github.com/adrg/xdg v0.4.0
Expand All @@ -9,10 +9,34 @@ require (
github.com/glendc/go-external-ip v0.1.0
github.com/jhoonb/archivex v0.0.0-20180718040744-0488e4ce1681
github.com/manifoldco/promptui v0.9.0
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/skip2/go-qrcode v0.0.0-20191027152451-9434209cb086
github.com/spf13/cobra v1.8.0
github.com/spf13/viper v1.18.2
gopkg.in/cheggaaa/pb.v1 v1.0.28
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 8b35ad8

Please sign in to comment.