Skip to content

How to dynamically set environment variables (envs.ENV.env-vars)? #1554

Answered by ofek
ketozhang asked this question in Q&A
Discussion options

You must be logged in to vote

Hatch doesn't preserve exports because it's a different process for each command but you can instead do shell syntax like test=["secret && stuff"].

I will think of a way to support dynamic environment variables based on the output of commands, thanks! Please create an issue/feature request for that.

Replies: 1 comment 3 replies

Comment options

ofek
Jun 6, 2024
Maintainer Sponsor

You must be logged in to vote
3 replies
@ketozhang
Comment options

@ofek
Comment options

ofek Jun 27, 2024
Maintainer Sponsor

@ketozhang
Comment options

Answer selected by ketozhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants