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

Add --define_experiment_constant as valid flag #27814

Merged
merged 2 commits into from Apr 17, 2020

Conversation

zhouyx
Copy link
Contributor

@zhouyx zhouyx commented Apr 16, 2020

Copy link
Contributor

@rsimha rsimha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the flag, @zhouyx! I've requested a couple of changes below.

@@ -112,6 +112,7 @@ build.flags = {
version_override: ' Overrides the version written to AMP_CONFIG',
custom_version_mark: ' Set final digit (0-9) on auto-generated version',
watch: ' Watches for changes in files, re-builds when detected',
defineExperimentConstant: ' Build with experiment const set to true',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All our flags use snake_case. Can you rename the flag (here and in all call sites) to define_experiment_constant?

Also a nit: For more clarity, change the message to:

Builds runtime with the EXPERIMENT constant set to true

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@zhouyx zhouyx closed this Apr 17, 2020
@zhouyx zhouyx reopened this Apr 17, 2020
@zhouyx zhouyx changed the title Add defineExperimentConstant as valid flag Add --define_experiment_constant as valid flag Apr 17, 2020
@zhouyx zhouyx merged commit 7d82092 into ampproject:master Apr 17, 2020
@zhouyx zhouyx deleted the add-valid-flag branch April 17, 2020 03:05
@zhouyx zhouyx restored the add-valid-flag branch April 17, 2020 22:07
@zhouyx zhouyx deleted the add-valid-flag branch April 17, 2020 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants