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

ScopeContext not behaving as expected #498

Open
arubertoson opened this issue Mar 9, 2018 · 3 comments
Open

ScopeContext not behaving as expected #498

arubertoson opened this issue Mar 9, 2018 · 3 comments
Labels

Comments

@arubertoson
Copy link

I've encountered a situation where I need to release packages over both unix and windows based machines. The release process is just unpacking and does not involve any building. But as the context resolves I'm encountering (not unexpected) that if my platform variant does not match my system it won't let me continue.

From what I've gathered I'm supposed to be able to use the scope context to do an override by:

#package.py

with scope('config') as c:
    c.implicit_packages = []

I'm still getting:

Resolving build environment: platform-windows arch-x86_64
The context failed to resolve:
The following package conflicts occurred: (platform-windows <--!--> ~platform==linux)

The way I've worked around this at the moment is having a rezconfig.py that I've removed the implicit_packages in.

REZ_CONFIG_FILE=/path/to/reznoimplicitconfig.py rez build

I feel a bit dirty doing it this way and feel I might have missed something. But it might be the wanted and expected behavior.

@nerdvegas
Copy link
Contributor

nerdvegas commented Mar 15, 2018 via email

@arubertoson
Copy link
Author

Sorry for the delay - how would I go about submitting a ticket?

@nerdvegas
Copy link
Contributor

Ah no worries, just leave as-is, this existing ticket is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants