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

0.21.0 --incompatible_strict_action_env and unzip [duplicate of #7026] #6999

Closed
excitoon opened this issue Dec 26, 2018 · 4 comments
Closed
Labels
area-Windows Windows-specific issues and feature requests team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website untriaged

Comments

@excitoon
Copy link
Contributor

Description of the problem / feature request:

https://ci.appveyor.com/project/excitoon/bazel/builds/21227594

0.21.0 stopped discovering unzip though it is in %Path%. 0.20.0 worked fine.

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

PowerShell:

iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
scoop bucket add user https://github.com/excitoon/scoop-user.git
scoop bucket add versions # For Python 2.7
scoop install user/msys2
scoop install user/bazel0.21.0
bazel build //src:bazel

What operating system are you running Bazel on?

Appveyor, any image.

What's the output of bazel info release?

0.21.0

@excitoon
Copy link
Contributor Author

excitoon commented Dec 26, 2018

As I can see it is this feature:

  - The --experimental_strict_action_env option has been renamed to
    --incompatible_strict_action_env and is now on by default. This
    means Bazel will no longer use the client's PATH and
    LD_LIBRARY_PATH environmental variables in the default action
    environment. If the old behavior is desired, pass
    --action_env=PATH and --action_env=LD_LIBRARY_PATH.
    --noincompatible_strict_action_env will also temporarily restore
    the old behavior. However, as --action_env is a more general and
    explicit way to pass client environmental variables into actions,
    --noincompatible_strict_action_env will eventually be deprecated
    and removed. See #6648 for more details.

@excitoon excitoon reopened this Dec 26, 2018
@excitoon
Copy link
Contributor Author

I guess even though Bazel don't use %PATH%, it should not break itself.

@excitoon excitoon changed the title 0.21.0 can't build itself on Windows 0.21.0 --incompatible_strict_action_env and unzip Dec 27, 2018
@RNabel
Copy link
Contributor

RNabel commented Dec 31, 2018

This is related to #5265, I believe. We're running into this with our repos as well, so we need to keep --action_env=PATH around in order to acces tools such as unzip or 7z.

@aiuto aiuto added area-Windows Windows-specific issues and feature requests untriaged labels Jan 2, 2019
@laszlocsomor
Copy link
Contributor

This is a duplicate of #7026.
Please follow that bug.

@laszlocsomor laszlocsomor changed the title 0.21.0 --incompatible_strict_action_env and unzip 0.21.0 --incompatible_strict_action_env and unzip [duplicate of #7026] Jan 3, 2019
@philwo philwo added the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Windows Windows-specific issues and feature requests team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website untriaged
Projects
None yet
Development

No branches or pull requests

5 participants