-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ui: vendor NPM modules #27035
ui: vendor NPM modules #27035
Conversation
LGTM, but there should be some documentation about how to add/update packages here. Review status: complete! 0 of 0 LGTMs obtained Comments from Reviewable |
Yeah, waiting on writing documentation until its proven that TeamCity can actually build with this. |
83a59e5
to
0ca81f6
Compare
Ok, TeamCity is happy! I've added instructions on how to manage dependencies in this new world. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix and the thorough docs! Sad that the repo is so flaky that this is necessary.
@couchand pointed out that rebasing branches before and after this is going to be tricky, but might as well do it now.
|
||
```bash | ||
$ cd yarn-vendor | ||
$ git checkout -b YOURNAME/add-left-pad |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😂
I had to Otherwise LGTM |
Hopefully just you! TeamCity and my GCE worker had no problem with it, for example. You didn't happen to save the error message, did you? |
|
Aha! Thanks. I know how to fix that. |
Vendor the NPM packages that our UI uses by checking them into a submodule, github.com/cockroachdb/yarn-vendored. This prevents NPM or Yarn registry flakiness from failing our CI builds, and also ensures that a `git clone --recurse-submodules` is sufficient to build CockroachDB offline. The feature that enables this is Yarn's "offline mirror." The blog post that introduced the feature also serves as its documentation: https://yarnpkg.com/blog/2016/11/24/offline-mirror/ To ensure the offline mirror is really used, we pass the '--offline' flag to all Yarn invocations in the build system. Fix cockroachdb#14615. Really fix cockroachdb#21432. Release note: None
Ok, fixed. Merging! TFTRs. bors r=couchand,vilterp,bdarnell |
27035: ui: vendor NPM modules r=couchand,vilterp,bdarnell a=benesch Vendor the NPM packages that our UI uses by checking them into a submodule, [github.com/cockroachdb/yarn-vendored](https://github.com/cockroachdb/yarn-vendored). This prevents NPM or Yarn registry flakiness from failing our CI builds, and also ensures that a `git clone --recurse-submodules` is sufficient to build CockroachDB offline. The feature that enables this is Yarn's "offline mirror." The blog post that introduced the feature also serves as its documentation: https://yarnpkg.com/blog/2016/11/24/offline-mirror/ To ensure the offline mirror is really used, we pass the '--offline' flag to all Yarn invocations in the build system. Fix #14615. Really fix #21432. Release note: None Co-authored-by: Nikhil Benesch <nikhil.benesch@gmail.com>
Build succeeded |
`yarn install` requires the yarn-vendor submodule to be available. This was missed when we started vendoring our Yarn dependencies in PR cockroachdb#27035. Fix cockroachdb#30619. Release note: None
30993: build: check out submodules before yarn install r=couchand a=benesch `yarn install` requires the yarn-vendor submodule to be available. This was missed when we started vendoring our Yarn dependencies in PR #27035. Fix #30619. Release note: None Co-authored-by: Nikhil Benesch <nikhil.benesch@gmail.com>
`yarn install` requires the yarn-vendor submodule to be available. This was missed when we started vendoring our Yarn dependencies in PR cockroachdb#27035. Fix cockroachdb#30619. Release note: None
Vendor the NPM packages that our UI uses by checking them into a
submodule, github.com/cockroachdb/yarn-vendored. This prevents NPM or
Yarn registry flakiness from failing our CI builds, and also ensures
that a
git clone --recurse-submodules
is sufficient to buildCockroachDB offline.
The feature that enables this is Yarn's "offline mirror." The blog post
that introduced the feature also serves as its documentation:
To ensure the offline mirror is really used, we pass the '--offline'
flag to all Yarn invocations in the build system.
Fix #14615.
Really fix #21432.
Release note: None