-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: set up generic way of passing in environment variables to dev app #21825
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
Conversation
@mbehrlich once these changes land, you'll have to change your
|
a71ca33
to
9079446
Compare
@@ -121,11 +121,11 @@ create_system_config( | |||
output_name = "system-config.js", | |||
) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@josephperrott I don't know how to resolve the lint errors in this file. I get a lint failure even after I run yarn format
and the error doesn't actually say what's wrong. Here's the full log:
yarn run v1.22.10
Checking format of 1 file(s)
The following files are out of format:
- src/dev-app/BUILD.bazel
? Format the files now? Yes
Formatting 1 file(s)
[========================================] ETA: 0s | 1/1 files
√ Formatting complete.
Done in 5.56s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This issue was actually just reported a few days ago in another case. I need to address the error messaging that occurs to surface it.
For the specific situation, you can have a glob without a matcher.
You should instead have
filegroup(
name = "variables",
srcs = [
"variables.json"
],
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that the variables.json
is an optional file that is .gitignore
d. Wouldn't using a filegroup
like this result in an error if the file doesn't exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I ran into this problem too. You need the glob, because the file doesn't necessarily exist, but it needs some arbitrary matcher because of the lint issue, I assume due to the assumption that you would never need a glob for a single file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, adding a *
in there fixed it 👍
9079446
to
2e42d9d
Compare
Currently we have a one-off way of passing the Google Maps API key to the dev app. These changes rework the approach so that we have a single `variables.json` file which can be used for the Google Maps key, as well as any other variables in the future.
2e42d9d
to
c363a31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Currently we have a one-off way of passing the Google Maps API key to the dev app. These changes rework the approach so that we have a single
variables.json
file which can be used for the Google Maps key, as well as any other variables in the future.