-
Notifications
You must be signed in to change notification settings - Fork 376
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
CI: sync versions of dependencies #7301
Conversation
The ^ on the request version was lost in TerriaJS#6986, so put it back so we get a slightly less ancient version that is what terriajs-server also uses. Also remove the addition of moment, that is already installed because of the dependencies of terriajs.
f5f629e
to
1eed359
Compare
Noticed that moment is already installed in TerriaMap because of the dependencies of terriajs, so updated this to not |
@@ -19,7 +19,7 @@ gh api /repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA} -f state=pending -f co | |||
# Install some tools we need from npm | |||
npm install -g https://github.com/terriajs/sync-dependencies | |||
npm install -g yarn@^1.19.0 | |||
yarn add -W request@2.83.0 | |||
yarn add -W request@^2.88.2 |
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.
Sync-dependencies got converted to got 5 years ago: TerriaJS/sync-dependencies#3
What is it in this workflow that requires installing request?
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.
It's buildprocess/ci-cleanup.js
that uses request.
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.
AFAICT it's only used in buildprocess/ci-cleanup.js
now that's we running node v20 on CI we could just use fetch
here instead
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.
That seems reasonable.
The deployment stuff is difficult to test for those of us who don't push to a branch of this repository though, could this PR be merged to fix the immediate issues and then someone at Terria takes care of the long-term solution of converting to fetch
when that is convenient for you?
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've created a PR here just need to work out where the type error is coming from #7547
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.
Replacing the deprecated request is better than updating it, so closing this in favor of #7547.
What this PR does
The ^ on the request version was lost
in #6986 (cc @ljowen), so put it back so
we get a slightly less ancient version that
is what terriajs-server also uses.
Also remove the addition of moment,
that is already installed because
of the dependencies of terriajs.
Test me
Run the CI-flow that runs this script.
Checklist
doc/
.