Site-www: Pubspec includes two dependency overrides pointed at external repos

Created on 12 Jul 2019  路  8Comments  路  Source: dart-lang/site-www

The site's pubspec:

https://github.com/dart-lang/site-www/blob/master/pubspec.yaml

Includes two dependency overrides that point to @chalin's personal GitHub account:

dependency_overrides:
  code_excerpt_updater:
    git: https://github.com/chalin/code_excerpt_updater.git
    # path: ../code_excerpt_updater
  code_excerpter:
    git: https://github.com/chalin/code_excerpter.git
    # path: ../code_excerpter

While the repos are unlikely to be taken down, it'd be good to remove those overrides or point them to copies in a more official location.

e1-hours infrastructure p2-medium

All 8 comments

+1, may or may not be involved in https://github.com/dart-lang/site-www/issues/1818

While the repos are unlikely to be taken down

FWIW: you are right that I won't be taking those down.

may or may not be involved in #1818

Unsure what kind of causal link you see with the use of dependency overrides, but I don't believe that would be the root cause of #1818.

Not your fault! It looks like it was caused by an extra file in the latest release of the crypto package.

馃憤

There are a few problems with this..

  1. If you try to run checks on older versions of the repository, the versions of the tools are not versioned with the code, and may not be compatible.
  2. If changes are made upstream that are incompatible, you may not find out until you go to push an unrelated commit to the source repository.

We should ideally publish these packages to pub and just be able to depend on them from there - that way it's clear what revision of the repo depended on what version of the tool(s).

I'm also trying to better understand some of the complexity in these tools, and whether we're doing work that jekyll could just be doing for us (perhaps via a plugin).

@chalin do you plan to publish these to pub?

@chalin do you plan to publish these to pub?

Yes, I'll get these published.

There are a few problems with this... 1. If you try to run checks on older versions of the repository, the versions of the tools are not versioned with the code, and may not be compatible.

FYI: It was decided a while ago that we wouldn't put effort into maintaining older versions of the site (@kwalrath and @mit-mit can confirm).

I'm also trying to better understand some of the complexity in these tools, and whether we're doing work that jekyll could just be doing for us (perhaps via a plugin).

Essentially, we used to have code-excerpt handling via a Jekyll plugin back in the AngularTS/Dart days, and the bottom line is that it made site generation slower; most writers find Jekyll too slow already. Writers rightfully expect a quick refresh cycle when working on a page. Prose edits are much more frequent than code excerpt changes. That is why code excerpt refresh was pulled out of the Jekyll site refresh loop. (To be clear, even back then, the code excerpter was run separately. In-page embedding of code excerpts was handled at site generation time, from the cached excerpts.)

Regarding the complexity of the tools. These tools evolved over time, addressing changing feature sets -- e.g., the tools can handle code-excerpt refresh in API docs (i.e., in API docs comments in code). This isn't a feature that we're using anymore AFAIK.

Thanks for the context!

We don't necessarily need this for multiple versions of the site, but we do need it if we want to be able to test previous commits - e.g. the last commit succeeded, this one failed, is it the version of package X impacting it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kwalrath picture kwalrath  路  3Comments

kwalrath picture kwalrath  路  5Comments

kwalrath picture kwalrath  路  4Comments

matanlurey picture matanlurey  路  4Comments

ug2454 picture ug2454  路  4Comments