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

env_sets not supported by action_config #9333

Closed
ptychu opened this issue Sep 5, 2019 · 4 comments
Closed

env_sets not supported by action_config #9333

ptychu opened this issue Sep 5, 2019 · 4 comments
Labels
P4 This is either out of scope or we don't have bandwidth to review a PR. (No assignee) stale Issues or PRs that are stale (no activity for 30 days) team-Rules-CPP Issues for C++ rules type: feature request

Comments

@ptychu
Copy link

ptychu commented Sep 5, 2019

Description of the problem / feature request:

Adding env_sets to build actions by adding them to action_config is not supported as docs suggest. (cc-toolchain-config-reference, cc_toolchain_config_lib.bzl:141).

I'm not sure if problem is missing implementation, or misleading docs.

Feature requests: what underlying problem are you trying to solve with this feature?

I want to setup remote license server for my compiler. It's done by environment variable. Therefore I want to add some environment variables to every execution of build action, that uses this compiler. After reading the docs I have come to an understanding that action_config is what I should use in this situation.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Try to provide env_sets to action_config(). Quick comparison between action_config and feature source code is enough to see it's not implemented.

What operating system are you running Bazel on?

Windows.

What's the output of bazel info release?

release 0.28.0

Have you found anything relevant by searching the web?

Seems to be introduced in issue #5380. Commit: d2e02548768c8e61607a1317c7c4fee5b29131b2

@irengrig irengrig added team-Rules-CPP Issues for C++ rules untriaged labels Sep 11, 2019
@scentini scentini self-assigned this Sep 13, 2019
@scentini scentini added P2 We'll consider working on this in future. (Assignee optional) and removed untriaged labels Sep 13, 2019
@scentini
Copy link
Contributor

Hm, I'll take a look to see if we want to support env_set in action-config, or treat this as a documentation issue. In the meantime, you can define a feature with the needed env_set, and use the implies attribute of action_config to automatically trigger the feature.

@ptychu
Copy link
Author

ptychu commented Sep 13, 2019

@scentini, Thanks. I used feature as a workaround, but didn't come up with using implies! I'd be willing to prepare a pull request, when it's decided how you want to treat this issue.

@oquenchil oquenchil added P4 This is either out of scope or we don't have bandwidth to review a PR. (No assignee) type: feature request and removed P2 We'll consider working on this in future. (Assignee optional) labels Nov 19, 2020
@github-actions
Copy link

Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 2+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team (@bazelbuild/triage) if you think this issue is still relevant or you are interested in getting the issue resolved.

@github-actions github-actions bot added the stale Issues or PRs that are stale (no activity for 30 days) label Apr 12, 2023
@github-actions
Copy link

This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out to the triage team (@bazelbuild/triage). Thanks!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P4 This is either out of scope or we don't have bandwidth to review a PR. (No assignee) stale Issues or PRs that are stale (no activity for 30 days) team-Rules-CPP Issues for C++ rules type: feature request
Projects
None yet
Development

No branches or pull requests

4 participants