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

Support environment: from an interactive session. #199

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

plietar
Copy link
Member

@plietar plietar commented Nov 15, 2024

The code path for interactive sessions, through orderly_copy_files, was not propagating the environment from the caller to orderly_search. The broke support for environment:-style queries, but only when running interactively.

In orderly_copy_files (and orderly_dependency), the envir parameter actually has two purposes: it provides values for environment: and it provides values that are substituted in the file paths to be copied. This dual usage causes a bit of confusion and may be what led to this issue. We may want to tidy up some of this in the future, possibly with the help of rlang's quosures and quasiquotation support.

The code path for interactive sessions, through orderly_copy_files, was
not propagating the environment from the caller to `orderly_search`. The
broke support for `environment:`-style queries, but only when running
interactively.

In orderly_copy_files (and orderly_dependency), the `envir` parameter
actually has two purposes: it provides values for `environment:` and it
provides values that are substituted in the file paths to be copied.
This dual usage causes a bit of confusion and may be what led to this
issue. We may want to tidy up some of this in the future, possibly with
the help of rlang's quosures and quasiquotation support.
@plietar plietar requested a review from richfitz November 15, 2024 15:04
@plietar plietar merged commit fb87926 into main Nov 15, 2024
10 checks passed
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