-
Notifications
You must be signed in to change notification settings - Fork 35
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
Consider expanding env vars while using request options #291
Comments
I can see the value in using environment variables, not sure if we should do it by default, or have an opt-in "fallback" to the environment variables. Do you have any thoughts on this @kriskowal? Separately, for what you're doing, we suggest putting the |
For this specific case, using a path relative to the yab file is the proper solution. That’s a bit of a bear in the monorepo, where the IDL and scripts are likely in parallel universes, but as @prashantv mentions, the intent is for you to put your IDL and yab scripts in the same directory, since it’s handy to distribute them to client repositories. Using an environment variable in this case would likely be more brittle than the relative path, though $GOPATH is less brittle than $HOME/go-code. I think we should wait for a more substantial feature before we entertain interpolating both -A arguments and environment variables (or unifying their namespace). |
I agree that this is not such a big deal. We may wait for more people to run into this before making any change. It's just that on the surface, I also agree that keeping yab files closer to thrift files is a good suggestion: using relative paths just becomes natural that way. However, |
Agreed. I believe this is the case, but if it’s a bug if you find otherwise. |
Although we have our own
name: ${name:value}
mechanism implemented in yab, can we consider the values for the variables as a merge of env vars and those that are specified on the command line (command line taking the precedence)? I miss the expansion of${HOME}
to the path of my home folder.Example yab
Somewhat unexpected error
The text was updated successfully, but these errors were encountered: