Skip to content

Deno.env review/cleanup: no set() past startup #12621

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cscheid
Copy link
Collaborator

@cscheid cscheid commented Apr 24, 2025

We need to get our Deno.env.* act together. It's generally not safe to call Deno.env.set past the start of the process, because Deno.env is global state which will be the cause of many race conditions from async code. This will become more acute when we add parallelism to Quarto, but it's already a problem in the test suite.

@MichaelHatherly This PR affects all engines, and so we will need a bit of help from you on the julia side - ExecuteOptions now has a new env field that needs to be communicated to the execution processes appropriately. You shouldn't assume that the environment will be the same from one call to another, and so this will need proper handling on your side.

We hope to merge this relatively early on in 1.8.

@cscheid cscheid added this to the v1.8 milestone Apr 24, 2025
@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented Apr 24, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

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