You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.
Currently gvt fetches recursive dependencies that are listed in files which have the // +build ignore tag. This seems to go against the expectation (as mentioned in the the README) that only files relevant to the Go compiler are fetched.
A real-life example of where this is a problem is when vendoring github.com/mattn/go-sqlite3. This package contains a tool directory with some helpers which don't form part of the core package. All files in the tool directory use the // +build ignore tag.
Because gvt doesn't ignore the files in the tool directory, github.com/PuerkitoBio/goquery (and subsequently, all it's dependencies) get vendored, even though they will never be used in the compiled application.
The text was updated successfully, but these errors were encountered:
alexedwards
changed the title
Don't fetch recurisve dependencies from files with +build ignore tag
Don't fetch recursive dependencies from files with +build ignore tag
Dec 11, 2016
With go mod due to be shipping in 1.11 as the official tool for managing versions I'm not sure that fixing this would be a good use of anyone's time. Closing.
Currently gvt fetches recursive dependencies that are listed in files which have the
// +build ignore
tag. This seems to go against the expectation (as mentioned in the the README) that only files relevant to the Go compiler are fetched.A real-life example of where this is a problem is when vendoring
github.com/mattn/go-sqlite3
. This package contains atool
directory with some helpers which don't form part of the core package. All files in thetool
directory use the// +build ignore
tag.Because gvt doesn't ignore the files in the tool directory,
github.com/PuerkitoBio/goquery
(and subsequently, all it's dependencies) get vendored, even though they will never be used in the compiled application.The text was updated successfully, but these errors were encountered: