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

PANTS_CONFIG_FILES support #1

Open
pinguinson opened this issue Nov 17, 2021 · 1 comment
Open

PANTS_CONFIG_FILES support #1

pinguinson opened this issue Nov 17, 2021 · 1 comment

Comments

@pinguinson
Copy link

Pants allows setting custom configuration file via PANTS_CONFIG_FILES env variable, and it works fine for me when I call pants directly (e.g. /.pants compile), but doesn't affect anything when building project in IDEA ('Pants/Compile all targets in project' action).

Looking at the plugin code I didn't find any mentions of neither PANTS_CONFIG_FILES nor --pants-config-files, so I assume there's no support for this, or maybe I'm missing something?

Anyway if it is indeed not implemented yet I'd be happy to help and contribute!

@basert
Copy link
Contributor

basert commented Nov 22, 2021

Hey!

we are currently using the default pants.toml file for our normal dev flow, so we never encountered this issue. But IntelliJ should pass all environment variables that are present at runtime to the pants binary. Can you try setting them globally on your machine and see if this works?

Otherwise, we might want to introduce a new setting when importing a project, that allows you to set the default config (or any explicit environment variables).

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

2 participants