Skip to content
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

Add Node 14 plugin and rebuild 10, 12, and 13 #767

Merged
merged 5 commits into from
Apr 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Update Travis badge to `master` and other changes in README ([#753](https://github.com/heroku/heroku-buildpack-nodejs/pull/753))
- Up feature flag test groups ([#758](https://github.com/heroku/heroku-buildpack-nodejs/pull/758))
- Add Heroku-20 to the Travis test matrix ([#763](https://github.com/heroku/heroku-buildpack-nodejs/pull/763))
- Add Node 14 plugin and rebuild 10, 12, and 13; Remove rebuilding of 8, 9, and 11 ([#767](https://github.com/heroku/heroku-buildpack-nodejs/pull/767))

## v170 (2020-03-31)
- Bump rake from 12.3.1 to 12.3.3 ([#742](https://github.com/heroku/heroku-buildpack-nodejs/pull/742))
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ heroku buildpacks:set <your-github-url>
heroku buildpacks:set <your-github-url>#your-branch
```

### Downloading Plugins

In order to download the latest plugins that have been released, run the following:

```
plugin/download.sh v$VERSION
```

Make sure the version is in the format `v#`, ie. `v7`.

## Tests

The buildpack tests use [Docker](https://www.docker.com/) to simulate
Expand Down
36 changes: 12 additions & 24 deletions plugin/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,46 +34,36 @@ download() {

delete_old_plugin() {
local dir=${1}
rm -f "$dir/heroku-nodejs-plugin-node-12.sha512"
rm -f "$dir/heroku-nodejs-plugin-node-12.tar.gz"
rm -f "$dir/heroku-nodejs-plugin-node-11.sha512"
rm -f "$dir/heroku-nodejs-plugin-node-11.tar.gz"
rm -f "$dir/heroku-nodejs-plugin-node-10.sha512"
rm -f "$dir/heroku-nodejs-plugin-node-10.tar.gz"
rm -f "$dir/heroku-nodejs-plugin-node-8.sha512"
rm -f "$dir/heroku-nodejs-plugin-node-8.tar.gz"
rm -f "$dir/heroku-nodejs-plugin-node-9.sha512"
rm -f "$dir/heroku-nodejs-plugin-node-9.tar.gz"
rm -f "$dir/heroku-nodejs-plugin-node-12.sha512"
rm -f "$dir/heroku-nodejs-plugin-node-12.tar.gz"
rm -f "$dir/heroku-nodejs-plugin-node-13.sha512"
rm -f "$dir/heroku-nodejs-plugin-node-13.tar.gz"
rm -f "$dir/heroku-nodejs-plugin-node-14.sha512"
rm -f "$dir/heroku-nodejs-plugin-node-14.tar.gz"
rm -f "$dir/version"
}

download_assets_for_release() {
local tag=${1}
local dir=${2}

# Node 8
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-8-$tag.sha512" "$dir/heroku-nodejs-plugin-node-8.sha512"
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-8-$tag.tar.gz" "$dir/heroku-nodejs-plugin-node-8.tar.gz"

# Node 9
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-9-$tag.sha512" "$dir/heroku-nodejs-plugin-node-9.sha512"
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-9-$tag.tar.gz" "$dir/heroku-nodejs-plugin-node-9.tar.gz"

# Node 10
# Node 10
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-10-$tag.sha512" "$dir/heroku-nodejs-plugin-node-10.sha512"
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-10-$tag.tar.gz" "$dir/heroku-nodejs-plugin-node-10.tar.gz"

# Node 11
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-11-$tag.sha512" "$dir/heroku-nodejs-plugin-node-11.sha512"
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-11-$tag.tar.gz" "$dir/heroku-nodejs-plugin-node-11.tar.gz"

# Node 12
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-12-$tag.sha512" "$dir/heroku-nodejs-plugin-node-12.sha512"
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-12-$tag.tar.gz" "$dir/heroku-nodejs-plugin-node-12.tar.gz"

# Node 13
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-13-$tag.sha512" "$dir/heroku-nodejs-plugin-node-13.sha512"
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-13-$tag.tar.gz" "$dir/heroku-nodejs-plugin-node-13.tar.gz"

# Node 14
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-14-$tag.sha512" "$dir/heroku-nodejs-plugin-node-14.sha512"
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-14-$tag.tar.gz" "$dir/heroku-nodejs-plugin-node-14.tar.gz"
}

test_hash() {
Expand Down Expand Up @@ -106,11 +96,9 @@ echo $TAG_NAME > "$PLUGIN_DIR/version"

echo "Plugins downloaded"

test_hash 8 $PLUGIN_DIR
test_hash 9 $PLUGIN_DIR
test_hash 10 $PLUGIN_DIR
test_hash 11 $PLUGIN_DIR
test_hash 12 $PLUGIN_DIR
test_hash 13 $PLUGIN_DIR
test_hash 14 $PLUGIN_DIR

echo "Done"
2 changes: 1 addition & 1 deletion plugin/heroku-nodejs-plugin-node-10.sha512
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24080f0918d31ea85fc1f5ef05b2d31667f801f383a719b0e099bb89f372b104655329152c4cb822a331a3c4880f042568dce2947e4dd4b782a0c891bed81d95 heroku-nodejs-plugin-node-10-v6.tar.gz
ed4d9bd5999773df8c8048cc7263e17035cdcbad22765e416779cebbb5cd98d1c46197412d6c5e792f8a334e49832a4856bec7d62f9c7ec1596e5442123720cc heroku-nodejs-plugin-node-10-v7.tar.gz
Binary file modified plugin/heroku-nodejs-plugin-node-10.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion plugin/heroku-nodejs-plugin-node-12.sha512
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e06c275a0882981fa1d263beb05a35ce8b155558050670b439ac677c58079034a1d00d80488855b25decc08d4a1b68821f587e9b785adf344641c81204ebc71d heroku-nodejs-plugin-node-12-v6.tar.gz
eab38e97fe36832fbf5256caebc0581558a6c52674603e6c285f92d1e33c8614d5cbe8353a3299a058b473fbe650e098cac74d2962362bda7250ec4ac27a0407 heroku-nodejs-plugin-node-12-v7.tar.gz
Binary file modified plugin/heroku-nodejs-plugin-node-12.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion plugin/heroku-nodejs-plugin-node-13.sha512
Original file line number Diff line number Diff line change
@@ -1 +1 @@
eafcdb643017fa72a74d5b52d2bf2b472179cb30e3b039b45467f3be375d91ab3fd8728fc200312b4e13f5506711ede470adad63cf3770b14b13a7ba21cb6d01 heroku-nodejs-plugin-node-13-v6.tar.gz
f9f34f8fc3ed2d9cafd55d20b9b7ac11da3352db73be0ee4a7530e07fe0ca9f0b6f2deeb17045cd35e7f3d0ed42ac9a6af3f7c4be08219e3e3128ebfd27231b0 heroku-nodejs-plugin-node-13-v7.tar.gz
Binary file modified plugin/heroku-nodejs-plugin-node-13.tar.gz
Binary file not shown.
1 change: 1 addition & 0 deletions plugin/heroku-nodejs-plugin-node-14.sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
21e2f973e3a021a04e23e8cc16b07415266ff3c3ed8a422864c91340b3fe7afce5fc956dfe72bc41971389cb944645687ce9e3dbe8adbe3eb1f21d20aa537476 heroku-nodejs-plugin-node-14-v7.tar.gz
Binary file added plugin/heroku-nodejs-plugin-node-14.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion plugin/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v6
v7