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

BUGFIX: Fail if no 'os' is specified in build profile and want to run an exte… #11728

Conversation

lasote
Copy link
Contributor

@lasote lasote commented Jul 29, 2022

Changelog: Bugfix: If the 'os' is not specified in the build profile and a recipe, in Windows, wanted to run a command, it failed to prepend the build environment launcher causing a hard-to-debug command line error. Now Conan raises if the "os" is not declared in that case.
Docs: omit

Close #11727

@lasote lasote requested a review from memsharded July 29, 2022 10:29
@lasote lasote added this to the 2.0.0-beta3 milestone Jul 29, 2022
@lasote lasote marked this pull request as draft July 29, 2022 10:44
@lasote lasote removed the request for review from memsharded July 29, 2022 10:44
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good

@lasote lasote marked this pull request as ready for review July 29, 2022 13:58
@@ -15,7 +15,6 @@ class SynchronizeTest(unittest.TestCase):

def test_upload(self):
client = TestClient(servers={"default": TestServer()}, inputs=["admin", "password"])
save(client.cache.default_profile_path, "")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing this is necessary? It seems only export + upload are used here, which should never need the profile at all?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The line 73 is doing client.run("install --requires=%s --build missing" % str(ref)) so building the package.

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

Successfully merging this pull request may close these issues.

2 participants