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

allow specifying custom build tags #21

Open
vikstrous2 opened this issue Jul 25, 2021 · 1 comment
Open

allow specifying custom build tags #21

vikstrous2 opened this issue Jul 25, 2021 · 1 comment

Comments

@vikstrous2
Copy link

wire relies on custom build tags in initializer files to generate code. The files that are loaded/built by default are part of the generated output and the files that rf should really be refactoring are not built unless the wireinject built tag is set. There should be a way to tell rf to use this build tag when loading and refactoring code.

There may be a larger question of how to refactor every version of code that relies heavily on build tags, but I don't want to open that can of worms. I hope it's simple enough to specify a single set of tags to use when loading/refactoring code.

@vikstrous2
Copy link
Author

I was able to specify custom build flags by setting GOFLAGS before running rf:

export GOFLAGS='-tags=wireinject'

Maybe that's good enough. Feel free to close this issue.

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

No branches or pull requests

1 participant