Skip to content
Snippets Groups Projects
  1. Mar 15, 2017
  2. Dec 02, 2016
    • Natalie Weizenbaum's avatar
      Avoid barback for precompilation if possible. (#1481) · 98ecbded
      Natalie Weizenbaum authored
      Previously we were always loading an AssetEnvironment when we
      precompiled any executable. Now we only load that environment if some
      package dependended on by some executable actually uses a transformer.
      Otherwise, we precompile from disk. The new approach is substantially
      faster and produces better error messages.
      
      Closes #1473
      98ecbded
  3. Dec 01, 2016
  4. Aug 16, 2016
  5. Aug 01, 2016
  6. Jul 22, 2016
  7. Jun 23, 2016
  8. Jun 20, 2016
    • Natalie Weizenbaum's avatar
      Refactor Source and SourceRegistry. · 3fb39388
      Natalie Weizenbaum authored
      This splits Source into two classes, Source and LiveSource. The former
      is completely independent of the system cache directory, and mostly
      contains source metadata and logic about manipulating descriptions.
      
      SourceRegistry now deals strictly in Sources, with LiveSources being
      handled by SystemCache. This means that classes like Pubspec and
      LockFile no longer have transitive references to the system cache
      directory.
      
      This will also make it possible to clean up PackageName equality logic
      by making PackageNames track their concrete Sources rather than just
      their source names.
      
      See #912
      
      R=rnystrom@google.com
      
      Review URL: https://codereview.chromium.org//2044253003 .
      3fb39388
  9. May 17, 2016
  10. May 05, 2016
  11. Mar 17, 2016
  12. Jan 13, 2016
  13. Jan 04, 2016
  14. Dec 17, 2015
    • Natalie Weizenbaum's avatar
      Clean up the semantics of package descriptions. · a69f0c9c
      Natalie Weizenbaum authored
      This folds the distinction between "resolved" and "unresolved"
      descriptions into the distinction between PackageIds and PackageRefs. In
      other words, all PackageIds now have resolved descriptions and all
      PackageRefs now have unresolved descriptions. This makes it easier to
      track which descriptions are resolved and express resolution constraints
      via the type system.
      
      This also restricts the creation of PackageRefs and PackageIds to source
      classes, which helps ensure that the description format—which is an
      implementation detail—doesn't leak into surrounding code.
      
      R=rnystrom@google.com
      
      Review URL: https://codereview.chromium.org//1528523003 .
      a69f0c9c
  15. Oct 28, 2015
    • Natalie Weizenbaum's avatar
      Fix error detection for a non-existent global script. · a1139b80
      Natalie Weizenbaum authored
      When we tried to run a global script that didn't exist, we would try to
      load an AssetEnvironment, which would try to compute the transformers
      for it. Because the script doesn't exist, the computation would
      conservatively assume that all transformers had to run in case one of
      them generated it.
      
      To find all the scripts, it iterated through the package's dependencies.
      Since it's notionally the entrypoint, it tried to include its dev
      dependencies, but this broke because dev dependencies aren't installed
      for globally-activated packages.
      
      R=rnystrom@google.com
      
      Review URL: https://codereview.chromium.org//1413713010 .
      a1139b80
  16. Aug 31, 2015
    • Natalie Weizenbaum's avatar
      Improve the heuristics for "pub get" is needed. · 1c08b841
      Natalie Weizenbaum authored
      Instead of relying only on modification times, this does a more complex
      compatibility check if the modification times of the pubspec, lockfile,
      and .packages file aren't ordered properly. If they are up-to-date, it
      updates the modification times accordingly.
      
      This also fixes a case where "pub run" wasn't properly checking that the
      dependencies were up-to-date.
      
      Closes #1322
      
      R=rnystrom@google.com
      
      Review URL: https://codereview.chromium.org//1307853004 .
      1c08b841
  17. Aug 10, 2015
  18. Aug 07, 2015
  19. Aug 06, 2015
  20. Aug 05, 2015
  21. Jul 09, 2015
    • Natalie Weizenbaum's avatar
      Fix several package spec bugs. · 9cb2334b
      Natalie Weizenbaum authored
      * The package spec's reference to the entrypoint package was pointing to
        the hosted cache rather than the package's directory. This was caused
        by the package graph's instance of the entrypoint package incorrectly
        pointing to the cache; the graph now re-uses `entrypoint.root`.
      
      * The package spec didn't contain relative paths for relative path
        dependencies. This was being missed by our tests because the package
        spec parser was automatically converting all paths to absolute at
        parse-time.
      
      Closes #1294
      
      R=rnystrom@google.com
      
      Review URL: https://codereview.chromium.org//1228093003 .
      9cb2334b
  22. Jun 24, 2015
  23. May 14, 2015
Loading