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

[service] tools.vswhere() raise exception in CI #4954

Closed
Woazim opened this issue Mar 18, 2021 · 1 comment
Closed

[service] tools.vswhere() raise exception in CI #4954

Woazim opened this issue Mar 18, 2021 · 1 comment

Comments

@Woazim
Copy link
Contributor

Woazim commented Mar 18, 2021

Using tools.vswhere() in validate() function of a recipe raises a ConanException: Cannot locate vswhere in 'Program Files'/'Program Files (x86)' directory nor in PATH when run by CCI CI/CD.

This is a: use case.

There is no problem when recipe is created on my computer or windows docker images using MS build tools.

Could you investigate this bug?
vswhere.exe should be located in C:\Program Files (x86)\Microsoft Visual Studio\Installer

Using vswhere in validate() function could be used to determine the exact version of Visual Studio (major and minor version numbers). This information can be important to know which new C++ features the compiler supports and to throw ConanInvalidConfiguration when not supported.

@Woazim Woazim mentioned this issue Apr 30, 2021
4 tasks
@jgsogo
Copy link
Contributor

jgsogo commented May 7, 2021

This is not a bug. The validate() method will be executed in a Linux container before delegating the build to a Windows machine. If the validate() computes a ConanInvalidConfiguration then the build won't take place.

Let's move to the recipe and see how can we work on this issue for that use-case.

@jgsogo jgsogo closed this as completed May 7, 2021
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