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

Clear all Cylc Rose options after Post-Install plugin #6059

Closed
wants to merge 1 commit into from

Conversation

wxtim
Copy link
Member

@wxtim wxtim commented Apr 8, 2024

Closes #6058 , itself a side effect of #5996.

Explanation

Cylc play ignores -S but not -O so -O overrides -S, but it shouldn't.

Check List

@wxtim wxtim self-assigned this Apr 8, 2024
@wxtim wxtim added this to the 8.2.6 milestone Apr 8, 2024
@wxtim wxtim marked this pull request as draft April 8, 2024 14:36
@wxtim wxtim marked this pull request as ready for review April 8, 2024 15:15
@wxtim wxtim added bug Something is wrong :( small labels Apr 8, 2024
Comment on lines +1266 to +1273
# Allow -S and -D and -O to take effect in Cylc VR.
# https://github.com/cylc/cylc-flow/issues/5968
# & https://github.com/cylc/cylc-flow/issues/6058
# TODO delete after 8.3.0 when this change will be included in
# Cylc Rose
self.options.rose_template_vars = []
self.options.defines = []
self.options.opt_conf_keys = []
Copy link
Member

Choose a reason for hiding this comment

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

Why does this work?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because if we delete the other two and not this one this one will override anything the user has input.

This is probably the wrong thing to do.

@wxtim
Copy link
Member Author

wxtim commented Apr 10, 2024

closing this because I don't think it's the correct solution: It fixes the proximate problem and not the underlying cause.

@wxtim wxtim closed this Apr 10, 2024
@oliver-sanders oliver-sanders removed this from the 8.2.6 milestone Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :( small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants