Skip to content
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

Use go/packages #178

Closed
jirfag opened this issue Aug 2, 2018 · 3 comments
Closed

Use go/packages #178

jirfag opened this issue Aug 2, 2018 · 3 comments
Labels
enhancement New feature or improvement

Comments

@jirfag
Copy link
Member

jirfag commented Aug 2, 2018

To properly analyze go modules we need to use go/packages

@caarlos0
Copy link

any pointers? I may be able to help with this :)

@jirfag
Copy link
Member Author

jirfag commented Oct 22, 2018

Hi!
I've almost implemented it, but I have some troubles with cgo. I need some time to investigate it, maybe go/packages has bugs. I hope to finish within a week

jirfag added a commit that referenced this issue Oct 25, 2018
Use go/packages instead of x/tools/loader: it allows to work
with go modules and speedups loading of packages with the help
of build cache.

A lot of linters became "fast": they are enabled by --fast now and
work in 1-2 seconds. Only unparam, interfacer and megacheck
are "slow" linters now.

Average project is analyzed 20-40% faster than before if all linters are
enabled! If we enable all linters except unparam, interfacer and
megacheck analysis is 10-20x faster!
jirfag added a commit that referenced this issue Oct 28, 2018
Use go/packages instead of x/tools/loader: it allows to work
with go modules and speedups loading of packages with the help
of build cache.

A lot of linters became "fast": they are enabled by --fast now and
work in 1-2 seconds. Only unparam, interfacer and megacheck
are "slow" linters now.

Average project is analyzed 20-40% faster than before if all linters are
enabled! If we enable all linters except unparam, interfacer and
megacheck analysis is 10-20x faster!
jirfag added a commit that referenced this issue Oct 28, 2018
Use go/packages instead of x/tools/loader: it allows to work
with go modules and speedups loading of packages with the help
of build cache.

A lot of linters became "fast": they are enabled by --fast now and
work in 1-2 seconds. Only unparam, interfacer and megacheck
are "slow" linters now.

Average project is analyzed 20-40% faster than before if all linters are
enabled! If we enable all linters except unparam, interfacer and
megacheck analysis is 10-20x faster!
jirfag added a commit that referenced this issue Oct 28, 2018
Use go/packages instead of x/tools/loader: it allows to work
with go modules and speedups loading of packages with the help
of build cache.

A lot of linters became "fast": they are enabled by --fast now and
work in 1-2 seconds. Only unparam, interfacer and megacheck
are "slow" linters now.

Average project is analyzed 20-40% faster than before if all linters are
enabled! If we enable all linters except unparam, interfacer and
megacheck analysis is 10-20x faster!
jirfag added a commit that referenced this issue Oct 28, 2018
Use go/packages instead of x/tools/loader: it allows to work
with go modules and speedups loading of packages with the help
of build cache.

A lot of linters became "fast": they are enabled by --fast now and
work in 1-2 seconds. Only unparam, interfacer and megacheck
are "slow" linters now.

Average project is analyzed 20-40% faster than before if all linters are
enabled! If we enable all linters except unparam, interfacer and
megacheck analysis is 10-20x faster!
@jirfag jirfag closed this as completed in 0421bac Oct 28, 2018
@jirfag
Copy link
Member Author

jirfag commented Oct 28, 2018

go/packages are supported in release v1.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement
Projects
None yet
Development

No branches or pull requests

2 participants