-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/update to go 1.17 #223
Open
aidan-mundy
wants to merge
16
commits into
dnephin:main
Choose a base branch
from
aidan-mundy-forks:feature/update-to-go-1.17
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
65f4756
Initial version updates before first testing
4bc4174
Upgrade to gogs/git-module 1.1.5
0603093
Update docker/docker to moby/moby
9f543da
Match pre-commit config to the appropriate json schema, and update ma…
9a5be6a
pre-commit sha->rev
c1d8d97
Fixed some deprecated dependencies
312b29f
Linter and mock suggestions
108bd15
Linter dockerfile version upgrades
fbee090
tester dockerfile version upgrade
7a3f896
Update docs and release images
9f87284
Fixed type in docs for annotation tags
19c7cc1
Update to latest sphinx and pre-commit-golang
9eb31a5
Remove useless variable
19e4b74
Remove deprecated linters
8e6f519
Revert "Remove useless variable"
79863c9
Fixed mistakenly removed variable and updated docker image version fo…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
- repo: git://github.com/pre-commit/pre-commit-hooks | ||
sha: v0.7.1 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: end-of-file-fixer | ||
files: '(\.(go|md|sh|yml|yaml|json|ini|rst)|Dockerfile.*)$' | ||
exclude: '^vendor/' | ||
- id: trailing-whitespace | ||
files: '(\.(go|md|sh|yml|yaml|json|ini|rst)|Dockerfile.*)$' | ||
args: ['--no-markdown-linebreak-ext'] | ||
exclude: '^vendor/' | ||
- id: check-yaml | ||
exclude: '^vendor/' | ||
- id: check-json | ||
exclude: '^vendor/' | ||
repos: | ||
- repo: git://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: end-of-file-fixer | ||
files: '(\.(go|md|sh|yml|yaml|json|ini|rst)|Dockerfile.*)$' | ||
exclude: '^vendor/' | ||
- id: trailing-whitespace | ||
files: '(\.(go|md|sh|yml|yaml|json|ini|rst)|Dockerfile.*)$' | ||
exclude: '^vendor/' | ||
- id: check-yaml | ||
exclude: '^vendor/' | ||
- id: check-json | ||
exclude: '^vendor/' | ||
|
||
- repo: git://github.com/dnephin/pre-commit-golang | ||
sha: v0.3.5 | ||
hooks: | ||
- id: golangci-lint | ||
args: ['-v', './...'] | ||
- repo: git://github.com/dnephin/pre-commit-golang | ||
rev: v0.4.0 | ||
hooks: | ||
- id: golangci-lint | ||
args: ['-v', './...'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
FROM docker/compose:1.8.0 | ||
FROM docker/compose:alpine-1.29.2 | ||
|
||
RUN apk add -U bash git curl expect | ||
|
||
RUN export VERSION=1.13.1; \ | ||
curl -Ls https://get.docker.com/builds/Linux/x86_64/docker-$VERSION.tgz | \ | ||
tar -xz docker/docker && \ | ||
mv docker/docker /usr/local/bin/ && \ | ||
rmdir docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//go:build !windows | ||
// +build !windows | ||
|
||
package execenv | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,55 @@ | ||
module github.com/dnephin/dobi | ||
|
||
go 1.13 | ||
go 1.17 | ||
|
||
require ( | ||
github.com/Unknwon/com v0.0.0-20170213072014-0db4a625e949 // indirect | ||
github.com/dnephin/configtf v0.0.0-20161020003418-6b0d1fdf5e68 | ||
github.com/dnephin/go-os-user v0.0.0-20161029070903-44e2994deb1e | ||
github.com/docker/cli v0.0.0-20200303215952-eb310fca4956 | ||
github.com/docker/docker v17.12.0-ce-rc1.0.20200309214505-aa6a9891b09c+incompatible | ||
github.com/docker/cli v20.10.9+incompatible | ||
github.com/docker/go-connections v0.4.0 | ||
github.com/fsouza/go-dockerclient v1.6.4 | ||
github.com/gogits/git-module v0.0.0-20170608205522-1de103dca47a | ||
github.com/golang/mock v1.1.1 | ||
github.com/google/go-cmp v0.4.0 | ||
github.com/kballard/go-shellquote v0.0.0-20170619183022-cd60e84ee657 | ||
github.com/mcuadros/go-version v0.0.0-20161105183618-257f7b9a7d87 // indirect | ||
github.com/metakeule/fmtdate v1.1.2-0.20150502212323-427373e7d2f8 | ||
github.com/opencontainers/runc v1.0.0-rc3.0.20170716065720-825b5c020ace // indirect | ||
github.com/pkg/errors v0.8.1 | ||
github.com/renstrom/dedent v1.0.1-0.20150819195903-020d11c3b9c0 | ||
github.com/sirupsen/logrus v1.4.1 | ||
github.com/smartystreets/goconvey v1.6.4 // indirect | ||
github.com/spf13/cobra v0.0.2-0.20171109065643-2da4a54c5cee | ||
github.com/valyala/bytebufferpool v1.0.0 // indirect | ||
github.com/valyala/fasttemplate v0.0.0-20170224212429-dcecefd839c4 | ||
golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975 | ||
golang.org/x/time v0.0.0-20170927054726-6dc17368e09b // indirect | ||
gopkg.in/yaml.v2 v2.2.2 | ||
gotest.tools/v3 v3.0.2 | ||
github.com/fsouza/go-dockerclient v1.7.4 | ||
github.com/gogs/git-module v1.1.5 | ||
github.com/golang/mock v1.6.0 | ||
github.com/google/go-cmp v0.5.6 | ||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 | ||
github.com/lithammer/dedent v1.1.0 | ||
github.com/metakeule/fmtdate v1.1.2 | ||
github.com/moby/moby v20.10.9+incompatible | ||
github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 | ||
github.com/pkg/errors v0.9.1 | ||
github.com/sirupsen/logrus v1.8.1 | ||
github.com/spf13/cobra v1.2.1 | ||
github.com/valyala/fasttemplate v1.2.1 | ||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 | ||
gopkg.in/yaml.v2 v2.4.0 | ||
gotest.tools/v3 v3.0.3 | ||
) | ||
|
||
replace github.com/spf13/cobra => github.com/dnephin/cobra v1.5.2-0.20170125185912-5d13e8c9d917 | ||
|
||
replace github.com/Nvveen/Gotty => github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd | ||
require ( | ||
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect | ||
github.com/Microsoft/go-winio v0.5.1 // indirect | ||
github.com/Microsoft/hcsshim v0.9.0 // indirect | ||
github.com/containerd/cgroups v1.0.2 // indirect | ||
github.com/containerd/containerd v1.5.7 // indirect | ||
github.com/containerd/continuity v0.2.1 // indirect | ||
github.com/docker/docker v20.10.9+incompatible // indirect | ||
github.com/docker/go-units v0.4.0 // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect | ||
github.com/inconshreveable/mousetrap v1.0.0 // indirect | ||
github.com/mcuadros/go-version v0.0.0-20190830083331-035f6764e8d2 // indirect | ||
github.com/moby/buildkit v0.9.1 // indirect | ||
github.com/moby/sys/mount v0.2.0 // indirect | ||
github.com/moby/sys/mountinfo v0.4.1 // indirect | ||
github.com/moby/sys/symlink v0.1.0 // indirect | ||
github.com/morikuni/aec v1.0.0 // indirect | ||
github.com/opencontainers/go-digest v1.0.0 // indirect | ||
github.com/opencontainers/image-spec v1.0.1 // indirect | ||
github.com/opencontainers/runc v1.0.2 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
github.com/valyala/bytebufferpool v1.0.0 // indirect | ||
go.opencensus.io v0.23.0 // indirect | ||
golang.org/x/sys v0.0.0-20211022215931-8e5104632af7 // indirect | ||
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect | ||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about using
moby/moby
here. Doesdocker/docker
not work? All the imports atmoby/moby
are still docker: ex: https://github.com/moby/moby/blob/master/image/image.go#L1And we have
github.com/docker/docker v20.10.9+incompatible
below, which makes me think this is not being included twice. I think we should importdocker/docker
and use it as the module as well.