Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Add support for ignoring imports from files with specific build constraints #67

Open
blitzrk opened this issue Dec 10, 2016 · 1 comment

Comments

@blitzrk
Copy link

blitzrk commented Dec 10, 2016

Add --skip-tag flag to choose to ignore imports from files with any of the given build tags. In many cases, adding a --skip-tag ignore and --skip-tag appengine could help limit the number of unneeded dependencies discovered with --update.

PR incoming...

blitzrk pushed a commit to blitzrk/trash that referenced this issue Dec 10, 2016
blitzrk pushed a commit to blitzrk/trash that referenced this issue Dec 10, 2016
@yamamoto-febc
Copy link

Hi @blitzrk,

I have a few questions about --skip-tag.
If --skip-tag appengine is specified, what happens to the file with the following build tags?

// +build linux appengine

If this file will skipped, you will not be able to build on Linux.

If the target tag is ignore, I think it will work.
But in other cases, build may become impossible.

What do you think?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants