Skip to content

Conversation

@andrewkolos
Copy link
Contributor

Fixes #130604

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jul 21, 2023
Copy link
Contributor

Choose a reason for hiding this comment

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

can we document in the help text the precedence for these two?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea.

Copy link
Contributor Author

@andrewkolos andrewkolos Jul 21, 2023

Choose a reason for hiding this comment

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

Done. Also updated some error text so that we don't yell at the user.

Copy link
Contributor

Choose a reason for hiding this comment

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

so if the dart vm sees these, the second entry will override the first?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I tested this on MacOS using the repro steps (I should have pushed my repro project, but I accidentally git cleaned it out of existence).

Copy link
Contributor Author

@andrewkolos andrewkolos Jul 21, 2023

Choose a reason for hiding this comment

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

I would have liked to write a more sound test for this, but I am not sure we can do this without actually doing a real build.

Alternatively, we could implement parsing on --dart-define and rebuild our own string that removes redundant entries, but this would be nontrivial.

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, if that's non-trivial this is fine. just wanted to make sure i was understanding correctly.

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

LGTM

@andrewkolos andrewkolos force-pushed the defines-from-cli-should-supersede-defines-from-file branch from 89e1670 to 3f35343 Compare August 3, 2023 21:29
@andrewkolos andrewkolos added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 4, 2023
@auto-submit auto-submit bot merged commit 30692ee into flutter:master Aug 4, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 4, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 4, 2023
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Aug 4, 2023
flutter/flutter@c00d241...2ba9f7b

2023-08-04 engine-flutter-autoroll@skia.org Roll Flutter Engine from d15a02a8191c to badca1f7f8c9 (1 revision) (flutter/flutter#131928)
2023-08-04 polinach@google.com Upgrade packages. (flutter/flutter#131927)
2023-08-04 engine-flutter-autoroll@skia.org Roll Flutter Engine from 0725a6f519d0 to d15a02a8191c (2 revisions) (flutter/flutter#131924)
2023-08-04 engine-flutter-autoroll@skia.org Roll Flutter Engine from c912e3417e68 to 0725a6f519d0 (2 revisions) (flutter/flutter#131917)
2023-08-04 engine-flutter-autoroll@skia.org Roll Flutter Engine from 03137a3b9b81 to c912e3417e68 (2 revisions) (flutter/flutter#131913)
2023-08-04 engine-flutter-autoroll@skia.org Roll Flutter Engine from de0ec1c971ab to 03137a3b9b81 (1 revision) (flutter/flutter#131912)
2023-08-04 engine-flutter-autoroll@skia.org Roll Flutter Engine from e3f75650ac5f to de0ec1c971ab (2 revisions) (flutter/flutter#131910)
2023-08-04 andrewrkolos@gmail.com make `--dart-define` override redundant values in `--dart-define-from-file` (flutter/flutter#131088)
2023-08-04 engine-flutter-autoroll@skia.org Roll Flutter Engine from ca8d852eddfc to e3f75650ac5f (1 revision) (flutter/flutter#131907)
2023-08-04 engine-flutter-autoroll@skia.org Roll Flutter Engine from 098ec489585e to ca8d852eddfc (2 revisions) (flutter/flutter#131905)
2023-08-04 engine-flutter-autoroll@skia.org Roll Flutter Engine from 4c62dd81d136 to 098ec489585e (2 revisions) (flutter/flutter#131903)
2023-08-04 engine-flutter-autoroll@skia.org Roll Flutter Engine from 0c1de9b8afba to 4c62dd81d136 (4 revisions) (flutter/flutter#131902)
2023-08-03 engine-flutter-autoroll@skia.org Roll Flutter Engine from b08e1410a06a to 0c1de9b8afba (9 revisions) (flutter/flutter#131897)
2023-08-03 tessertaha@gmail.com Fix TimePicker token issue link (flutter/flutter#131863)
2023-08-03 30870216+gaaclarke@users.noreply.github.com [Impeller] Add animated_blur_backdrop_filter_perf execution on samsung vulkan and opengles (flutter/flutter#131864)
2023-08-03 zanderso@users.noreply.github.com Revert "Manual roll Flutter Engine from 4cc0b3dab001 to b08e1410a06a (9 revisions)" (flutter/flutter#131896)
2023-08-03 engine-flutter-autoroll@skia.org Manual roll Flutter Engine from 4cc0b3dab001 to b08e1410a06a (9 revisions) (flutter/flutter#131880)
2023-08-03 30870216+gaaclarke@users.noreply.github.com Added new gallery benchmark test that forces opengles. (flutter/flutter#131796)
2023-08-03 engine-flutter-autoroll@skia.org Roll Packages from 4e4961a to d00c1f9 (10 revisions) (flutter/flutter#131866)
2023-08-03 christopherfujino@gmail.com manual pub package roll (flutter/flutter#131804)
2023-08-03 ychris@google.com remove Mac_ios ios_app_with_extensions_test (flutter/flutter#131806)
2023-08-03 engine-flutter-autoroll@skia.org Roll Flutter Engine from 46f3e099ad04 to 4cc0b3dab001 (3 revisions) (flutter/flutter#131854)
2023-08-03 47866232+chunhtai@users.noreply.github.com Adds a11y assessment sample app (flutter/flutter#131716)
2023-08-03 60728110+MahmoudZayad@users.noreply.github.com Remove target Staging_build_linux framework_tests_misc (flutter/flutter#126959)
2023-08-03 engine-flutter-autoroll@skia.org Manual roll Flutter Engine from 4c1157b9da54 to 46f3e099ad04 (3 revisions) (flutter/flutter#131848)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC camillesimon@google.com,rmistry@google.com,stuartmorgan@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@andrewkolos andrewkolos deleted the defines-from-cli-should-supersede-defines-from-file branch April 29, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--dart-define doesn't override values passed with --dart-define-from-file

2 participants