Comments (8)
No. It's reproducible without -u
.
e.g.
GO111MODULE=auto go get github.com/haya14busa/go-get-non-latest-dep-test
from reviewdog.
Probably because go-github v25 was released, but i'm not sure.
https://github.com/google/go-github/releases/tag/v25.0.0
It might be the bug of go-get and it's not the problem of reviewdog.
Please use GO111MODULE=on
, install reviewdog binary (https://github.com/reviewdog/reviewdog#installation), or report the bug to go project.
from reviewdog.
I updated dependencies and confirmed go get
worked.
Still not sure whether or not it's bug of go.
from reviewdog.
It seems to be caused by -u option.
A common mistake is thinking go get -u foo solely gets the latest version of foo. In actuality, the -u in go get -u foo or go get -u foo@latest means to also get the latest versions for all of the direct and indirect dependencies of foo. A common starting point when upgrading foo is instead to do go get foo or go get foo@latest without a -u (and after things are working, consider go get -u=patch foo, go get -u=patch, go get -u foo, or go get -u).
-u option cannot solve the dependencies but get latest of all repositories it depends on.
Thank you.
from reviewdog.
ref: https://github.com/golang/go/blob/a16dcc00526dbb5ff411004c987a4182a8d68e7c/src/cmd/go/internal/load/pkg.go#L1011-L1019
https://golang.org/issue/25069
from reviewdog.
It's my mistake about -u.
I saw your go-get-non-latest-dep-test repo and run.
distro: Ubuntu 18.04
go: 1.12.4
then
$ GO111MODULE=auto go get github.com/haya14busa/go-get-non-latest-dep-test
go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
ignoring go.mod;
see 'go help modules'
- If GO111MODULE=auto and workdir is under $GOPATH/src, GO111MODULE is off. resource So, go-github is got without version info.
- However, go-get-non-latest-dep-test repo imports github.com/google/go-github/v24 but v24 depends on go mod.
- So we must GO111MODULE=on when go get.
from reviewdog.
Sry, I wrong.
I can import latest(v25) when GO111MODULE=off
aimof/go-get-non-latest-dep-test@c07a1c5
from reviewdog.
Last Thursday I used wget
command in README instead of go get
to repair our problem.
@haya14busa
Thank you for your research and quick temporary fix, even though it was not caused by reviewdog.
from reviewdog.
Related Issues (20)
- 'github-pr-review' reporter is not making suggestion for blank line addition
- Support for Vale text linter HOT 2
- Bundle related suggestions together
- [BUG] Sarif format not working HOT 9
- fail to run reviewdog: XML syntax error on line 10: expected attribute name in element HOT 1
- 'reviewdog: .git exist but is not a directory' in submodule
- Add support for Azure Devops
- I want to konw which LLM do you uesd HOT 4
- File filter for github doesn't correctly submit comments HOT 3
- Wrong line number is sent to Bitbucket Server Code Insight Reports HOT 2
- Feature Request: Option to Disable the `"reported by reviewdog 🐶"` Prefix in Review Messages HOT 11
- New GitHub Action: terraform-validate HOT 2
- gitlab-mr-discussion fail to get diff HOT 3
- [BUG] breaks if file path contains parenthesis
- There was a lint problem running locally, but when I ran reviewdog on CI, there was no comment output HOT 1
- Logo Visibility Issue in GitHub Dark Theme
- GitHub Pull Request diff API responds with 406 — diff too large HOT 17
- github-pr-review reporter: Marks review threads as resolved if that are resolved
- ESLint - Reviewdog output missing file names
- Reviewdog reports issues in old lines instead of new ones
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reviewdog.