[deps] rev dartdoc, ecosystem, http, native, test, tools, webdev Revisions updated by `dart tools/rev_sdk_deps.dart`. dartdoc (https://github.com/dart-lang/dartdoc/compare/f5750f5..dd28f4c): dd28f4ce 2023-09-11 dependabot[bot] Bump actions/cache from 3.3.1 to 3.3.2 (#3497) 2ac7e323 2023-09-11 dependabot[bot] Bump actions/upload-artifact from 3.1.2 to 3.1.3 (#3496) ecosystem (https://github.com/dart-lang/ecosystem/compare/2e6c3ec..e96fbdb): e96fbdb 2023-09-12 Moritz Try a fix for the health check socket issues (#164) 4cc5005 2023-09-11 Alexander Thomas Add missing license header to license.dart (#166) 3fbab6c 2023-09-10 Moritz Fix boolean condition in `publish.yaml` (#163) http (https://github.com/dart-lang/http/compare/7fb6fd6..de19214): de19214 2023-09-12 Sam Rawlins Avoid passing a nullable value to Completer<nn-type>.complete (#1015) native (https://github.com/dart-lang/native/compare/a2dfedc..5177659): 5177659 2023-09-12 Daco Harkes [native_assets_builder] Speedup builds for 0 or 1 packages with native assets (#129) 7f30f4b 2023-09-12 Daco Harkes [native_assets_builder] Take packageLayout for build and dryRun (#127) a7cd31e 2023-09-12 Daco Harkes `PackageLayout` constructor for already parsed `PackageConfig` (#126) 9f24b64 2023-09-11 Daco Harkes [native_toolchain_c] Fix MSVC x86 toolchain resolution (#124) 07e1de5 2023-09-06 Daco Harkes Reenable example on CI + roll dep (#122) 387f894 2023-09-06 Gabriel Terwesten [native_toolchain_c] Default handling for PIC/PIE compiler flags (#121) 0a4e5f8 2023-09-06 Gabriel Terwesten Add support for defines to `CBuilder` (#120) test (https://github.com/dart-lang/test/compare/27dcae1..6449495): 64494959 2023-09-11 Jacob MacDonald skip failing wasm tests (#2091) 83ae0d9f 2023-09-07 Jacob MacDonald Fix running browser tests that use deferred loading (#2090) tools (https://github.com/dart-lang/tools/compare/2c8cbd6..fa01f9b): fa01f9b 2023-09-11 Elias Yishak `--disable-telemetry` --> `--disable-analytics` (#145) webdev (https://github.com/dart-lang/webdev/compare/9487a45..6b21ecf): 6b21ecf0 2023-09-11 dependabot[bot] Bump actions/labeler from 4.2.0 to 4.3.0 (#2177) 78a5fece 2023-09-11 Sam Rawlins Avoid passing a nullable value to Future<nn-type>.value or Completer<nn-type>.completer. (#2205) 6f282432 2023-09-11 Parker Lougheed [webdev] Hide `--null-safety` option (#2206) 1c5a7bc7 2023-09-11 Parker Lougheed Replace deprecated lints (#2208) f0656b4a 2023-09-11 Parker Lougheed Fix a few minor spelling mistakes (#2209) 158223b2 2023-09-11 Parker Lougheed Update old dartlang.org links to new .dev equivalents (#2210) a8d114c5 2023-09-11 Elliott Brooks Update the comment for lookupResolvedPackageUris 76e050c6 2023-09-11 Elliott Brooks Clear the map of relative URIs on DartUri.clear() 38a17ced 2023-09-11 dependabot[bot] Bump dart-lang/setup-dart from 1.3.0 to 1.5.0 (#2212) cca9e56d 2023-09-11 Elliott Brooks Reset Webdev after release (#2227) 824dcef7 2023-09-11 Elliott Brooks Reset DWDS after release (#2225) 45c09a80 2023-09-08 Elliott Brooks Prepare Webdev for release to 3.0.8 (#2224) 805d3b7e 2023-09-08 dependabot[bot] Bump actions/cache from 3.2.2 to 3.3.2 (#2223) 85d4e760 2023-09-08 Elliott Brooks Prepare DWDS for release to version 21.0.0 (#2221) a3757f06 2023-09-08 Anna Gringauze Run monorepo generate (#2222) c991e85a 2023-09-07 dependabot[bot] Bump actions/checkout from 3.2.0 to 4.0.0 (#2219) 9851c23c 2023-09-07 Parker Lougheed Update SDK constraints for Dart 3.0 and 3.1 stable releases (#2207) Change-Id: I0caf74af171916d30eb8ee2ab78c15acaebaa229 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325560 Auto-Submit: Devon Carew <devoncarew@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Devon Carew <devoncarew@google.com> https://dart.googlesource.com/sdk/+/4722e4decae290d64bb1aa63d7b39756e79cbae0
Monorepo is:
With depot_tools installed and on your path, create a directory for your monorepo checkout and run these commands to create a gclient solution in that directory:
mkdir monorepo cd monorepo gclient config --unmanaged https://dart.googlesource.com/monorepo gclient sync -D
This gives you a checkout in the monorepo directory that contains:
monorepo/ DEPS - the DEPS used for this gclient checkout commits.json - the pinned commits for Dart, flutter/engine, and flutter/flutter tools/ - scripts used to create monorepo DEPS engine/src/ - the flutter/buildroot repo flutter/ - the flutter/engine repo out/ - the build directory, where Flutter engine builds are created third_party/ - Flutter dependencies checked out by DEPS dart/ - the Dart SDK checkout. third_party - Dart dependencies, also used by Flutter flutter/ - the flutter/flutter repo
Flutter's instructions for building the engine are at Compiling the engine
They can be followed closely, with a few changes:
goma_ctl ensure_start is sufficient.Example build commands that work on linux:
MONOREPO_PATH=$PWD if [[ ! $PATH =~ (^|:)$MONOREPO_PATH/flutter/bin(:|$) ]]; then PATH=$MONOREPO_PATH/flutter/bin:$PATH fi export GOMA_DIR=$(dirname $(command -v gclient))/.cipd_bin goma_ctl ensure_start pushd engine/src flutter/tools/gn --goma --no-prebuilt-dart-sdk --unoptimized --full-dart-sdk autoninja -C out/host_debug_unopt popd
The Flutter commands used to build and run apps will use the locally built Flutter engine and Dart SDK, instead of the one downloaded by the Flutter tool, if the --local-engine option is provided.
For example, to build and run the Flutter spinning square sample on the web platform,
MONOREPO_PATH=$PWD cd flutter/examples/layers flutter --local-engine=host_debug_unopt \ -d chrome run widgets/spinning_square.dart cd $MONOREPO_PATH
To build for desktop, specify the desktop platform device in flutter run as -d macos or -d linux or -d windows. You may also need to run the command
flutter create --platforms=windows,macos,linux
on existing apps, such as sample apps. New apps created with flutter create already include these support files. Details of desktop support are at Desktop Support for Flutter
Tests in the Flutter source tree can be run with the flutter test command, run in the directory of a package containing tests. For example:
MONOREPO_PATH=$PWD cd flutter/packages/flutter flutter test --local-engine=host_debug_unopt cd $MONOREPO_PATH
Please file an issue or email the dart-engprod team with any problems with or questions about using monorepo.
We will update this documentation to address them.
flutter commands may download the engine and Dart SDK files for the configured channel, even though they will be using the local engine and its SDK.gclient sync needs to be run in an administrator session, because some installed dependencies create symlinks.