Skip to main content

runfiles 0.10.0 copy "runfiles: ^0.10.0" to clipboard
runfiles: ^0.10.0 copied to clipboard

Bazel runfiles library for Dart. Locates data files at runtime.

Changelog #

0.10.0 #

Breaking #

  • @rules_dart//dart/unused_deps --dry-run prints a diff, no longer buildozer commands
  • @rules_dart//dart/unused_deps says what Bazel's exit code means when its build fails
  • @rules_dart//dart/unused_deps says how to rewrite or opt out a dep it cannot remove
  • Default Dart SDK is 3.14.1
  • Dart SDK 3.13 releases are no longer served
  • dart_kernel_source and dart_analyzer_source build any Dart release given its sha256
  • dart_test and dart_binary fail on a srcs entry of which main loads nothing
  • Files of a shared filegroup that a program never loads need no deps and use none
  • Gazelle gives a test only the deps of the helpers it reaches
  • import_check_output_groups requires main
  • bazel run @rules_dart//dart/unused_deps names srcs main never loads and keeps what only they use
  • bazel run @rules_dart//dart/unused_deps keeps every dep of a target whose imports are refused
  • dart_analyze accepts a @docImport of what the target does not depend on
  • Bazel's repository cache keeps one copy of each pub package version
  • pub_lock_package no longer fetches: it needs files from pub_archive_files or pub_git_files
  • link_pub_files and write_pub_files_root build a source repository over a files repository
  • PUBSPEC_DEPENDENCIES names the file write_pubspec_dependencies writes
  • Builds fail, naming both targets, when two different packages share a package_name
  • Two fetchers' copies of a pub package are one only when fetched alike or built from one directory
  • make_dart_library_build_content takes source in place of purl
  • pub.from_lock() resolves path packages against a lock named in a subdirectory
  • pub_hosted_source, pub_git_source and pub_path_source say where a package came from
  • pub_package_identity takes a package's source in place of its purl
  • make_package_metadata_content writes a generated package's declaration from its source
  • DartPackageMetadataInfo(...) takes only the facts it states, the rest empty
  • Removed pub_lock_git_package; pub_lock_package builds git packages too
  • A dart_library with only deps is no longer a package of its own
  • dart_info_no_package takes runfiles
  • data_runfiles in @rules_dart//dart:utils.bzl gives the runfiles of data targets
  • pub_files_fetched says what a files repository fetched
  • pub.from_lock() and pub.package() serve pub.dev's runfiles from @rules_dart//dart/runfiles
  • @rules_dart//dart/runfiles states its license file
  • published_by_rules_dart in pub_lock_package.bzl names the pub packages rules_dart serves itself
  • rules_dart needs Bazel 9.3.0 or newer
  • derive_package_root takes repo_root in place of workspace_root
  • Editing rules_dart or adding a worktree no longer stores a Dart SDK release again
  • dart_repositories is a function to call, no longer a repository rule
  • Removed dart_sdk_repo_impl; use dart_sdk_repo_attrs
  • dart.release, dart.custom_sdk and dart.checkout declare Dart SDKs rules_dart does not pin
  • dart.custom_sdk and dart.checkout cross-compile with the tools cross_tools names
  • dart.use_sdk chooses the Dart SDK a build uses, in MODULE.bazel
  • --@rules_dart//dart:sdk overrides dart.use_sdk for one build
  • @dart_toolchains holds every declared SDK; @<name>_toolchains is removed
  • Removed dart_register_toolchains; use the dart extension's tags
  • A Dart SDK that cannot serve the build fails only the builds using it
  • Dart SDKs older than 3.13.0 are refused, naming the minimum
  • bazel fetch --all and bazel vendor succeed with Dart SDKs this machine cannot use
  • A cross aot-snapshot needs no dartaotruntime on local SDKs and Dart 3.15.0-81.0.dev or newer
  • dart.toolchain names must be a letter followed by letters, digits and underscores
  • A pub package that cannot be built fails only the builds using it
  • allow_upgrade_by_dependencies applies to a dart.toolchain of any name
  • DartSdkInfo.cross_tools has gen_snapshot and dartaotruntime in place of files
  • DartSdkInfo.cross_tools.home is None for an SDK that finds its tools beside it
  • dart_toolchain takes build_root_tools and missing_cross_tools
  • dart_cross_tools is a function to call, no longer a repository rule
  • Removed dart_cross_tools_impl; use dart_cross_tools_attrs
  • The pubspec reader compiles with the SDK dart.use_sdk names, not always the dart release
  • read_pubspec returns struct(error, pubspec) instead of failing on a refused pubspec
  • A pub package whose pubspec pub refuses fails only the builds using it
  • dart_kernel_source and dart_analyzer_source are functions to call, no longer repository rules
  • Adding a Dart release no longer stores other releases' kernel and analyzer sources again
  • An SDK source rules_dart's pub packages don't suit fails only builds running that tool, saying why
  • read_pubspec takes locked_versions and returns each excluded dependency in unsatisfied
  • read_pubspec_dependencies takes a Label in the source repository, not its name
  • A path pub package that cannot be built fails only the builds using it
  • build_from_pubspec refuses a directory with no pubspec.yaml
  • fetch_pub_path is now link_pub_path, which returns why it cannot serve a directory
  • pub.package(name = "runfiles") is an error; depend on @rules_dart//dart/runfiles
  • parse_pubspec_lock returns struct(packages, sdks) instead of the packages dict
  • pub.from_lock() fails on an sdks: block pub would refuse
  • pub.from_lock() reads a lock with an empty packages: as pub does
  • dart.release and dart.toolchain refuse a dart_version no Dart SDK can have
  • dart.release fetches main-channel builds named 3.15.0-edge.<commit>

Added #

  • DartCodeAssetInfo.link_inputs holds the objects and archives a code asset was linked from
  • DartLinkInputsInfo lets a rule state what a library it produces was linked from
  • Builds run on Windows on Arm, as the windows-arm64 SDK host
  • DartCodeAssetInfo.dsym gives the dSYM written with a code asset's library
  • DartDsymInfo states the dSYM of a library a rule copies or renames
  • DartCodeAssetInfo.link_inputs_gone marks a library whose object files were deleted
  • DartLinkInputsInfo takes gone = True in place of inputs
  • version_constraint_allows in pub_versions.bzl answers as pub_semver's allows does
  • version_constraint_error and is_semver in pub_versions.bzl say what pub would refuse
  • pub.from_lock refuses a lock whose version numbers pub cannot read as integers
  • read_pubspec returns flutter_constraint and flutter_minimum
  • read_pubspec refuses an environment constraint pub cannot parse, on any SDK
  • pub_lock_package.bzl exports the checks pub.from_lock applies to locks
  • pub_lock_path_directory finds a path package's directory from its lock
  • pub.from_lock suggests the Bazel package at an unmapped path package's directory
  • pub.from_lock(build_from_pubspec = ...) builds path packages outside the repository
  • resolve finds a cycle through a path package outside the repository
  • bazel vendor leaves out build_from_pubspec packages, which build from their directory
  • read_pubspec_refusal tells another pub extension why a resolve package can't be planned
  • dependency_cycle and cycle_error take from_lock, the caller's tag, for their messages

Fixed #

  • A generated source in a package from another repository no longer empties the package
  • Builds with --incompatible_exclude_starlark_flags_from_exec_config no longer hit a cycle
  • A root dart.toolchain may pin any Dart SDK rules_dart supports, not only the newest
  • A root without a dart.toolchain gets the newest Dart SDK rules_dart supports
  • dart_test compiles with dart.vm.product false, as dart test does
  • DartKernelSdkInfo.module_runtime is the runtime a test compiles for, whole programs included
  • DartKernelSdkInfo.runtimes has debug for the VM
  • The import check accepts a dart: import whatever its letter case or escapes
  • Builds no longer make source files read-only and executable on macOS
  • A machine with no Dart SDK fails builds needing Dart, saying so; bazel fetch --all succeeds
  • A Linux machine on RISC-V or POWER no longer gets an x64 Dart SDK
  • dart_code_asset over a rust_shared_library says why its link inputs are unknown
  • Execution platforms the chosen Dart SDK lacks are skipped instead of stopping the build
  • A Dart SDK may be named pubspec_reader
  • The pubspec reader reports why it cannot use the dart.use_sdk SDK before using the dart release
  • dart_code_asset names the file target when its file is not a dynamic library
  • pub.from_lock() accepts locks spelling one git package's url or path differently
  • The package-name clash error says to rename a target named only after its directory
  • dart/unused_deps leaves the rest of a BUILD file as written, however it is formatted
  • comment_references reports private names despite an unresolved @docImport
  • @rules_dart//dart/unused_deps removes @repo//:repo from a file buildifier would change
  • @rules_dart//dart/unused_deps fixes the other BUILD files when it cannot edit one
  • dart_analyze accepts references in a part of name; an unresolved doc import may supply
  • dart_analyze no longer crashes on part of 'package:...' beside an unresolved doc import
  • Gazelle puts a part in the srcs of each test and binary that reaches it
  • Gazelle writes no dart_test or dart_binary for a part, and deletes those it wrote
  • A bazel vendor directory works on another operating system
  • A repository contents cache shared between hosts no longer breaks reading pubspecs
  • A dart.custom_sdk whose source reaches a package it also supplies says which one
  • dart.custom_sdk hosts with different version files each get tools of their own version
  • pub.from_lock refuses a build_from_pubspec package another lock lists as hosted or git
  • pub.from_lock() refuses a package that two locks fetch from different registries
  • A lock naming pub.dartlang.org agrees with pub.package() and locks naming pub.dev
  • Gazelle keeps a hand-set main of dart_binary and dart_test named after another file

What's Changed #

New Contributors #

Full Changelog: https://github.com/aran/rules_dart/compare/v0.9.1...v0.10.0

0
likes
0
points
5.11k
downloads

Publisher

unverified uploader

Weekly Downloads

Bazel runfiles library for Dart. Locates data files at runtime.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on runfiles