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

[bug] conan create -kb doesn't inject tools.microsoft.bash:subsystem config from tool_requires #12154

Closed
SpaceIm opened this issue Sep 20, 2022 · 4 comments

Comments

@SpaceIm
Copy link
Contributor

SpaceIm commented Sep 20, 2022

Environment Details (include every applicable attribute)

  • Operating System+version: Windows 10
  • Compiler+version: MinGW 9 / gcc 11.2
  • Conan version: 1.52.0
  • Python version: 3.10.2

Steps to reproduce (Include if Applicable)

Be sure to not have tools.microsoft.bash:subsystem or tools.microsoft.bash:path set globally or in profile (they should come from msys2 recipe which is in tool_requires of xz_utils recipe).

Logs (Executed commands with output) (Include/Attach if Applicable)

ERROR: xz_utils/5.2.5: Error in package() method, line 149
        autotools.install(args=[f"DESTDIR={unix_path(self, self.package_folder)}"])
        ConanException: The config 'tools.microsoft.bash:subsystem' is needed to run commands in a Windows subsystem
@memsharded
Copy link
Member

Note: --keep-build is deprecated and no longer recommended. If this issue doesn't happen without -kb, then it can be closed as solved in 2.0.

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Sep 20, 2022

Is it documented somewhere? I don't see anything in https://docs.conan.io/en/latest/reference/commands/creator/create.html. What is the successor of -kb? It's very useful to test package() method without building everything again.

@memsharded
Copy link
Member

Not explicitly documented in the migration guide, as it is more focused on the recipes, not all commands, but it can be added.

No successors, builds in the cache will always be clean, it will not keep a previous build just for the package. The alternative is a local conan export-pkg working from local flow (conan install + native build system), which is the recommended approach.

@memsharded
Copy link
Member

Closing as outdated, --keep-build removed in 2.0

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