Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

Commit

Permalink
Correct plugin auto-installation from custom server
Browse files Browse the repository at this point in the history
  • Loading branch information
benesch committed Jan 3, 2022
1 parent edd4280 commit 5e77886
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2,112 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ sdk
__pycache__
venv
node_modules
package-lock.json
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sdk: bin/pulumi-sdkgen-docker-buildkit
cd sdk/nodejs/ && \
npm install && \
npm run build && \
sed -e "s/\$${VERSION}/$(VERSION)/g" package.json > bin/package.json
awk -f ../../build/munge-package-json.awk -v version=$(VERSION) package.json > bin/package.json
mv sdk/nodejs sdk/nodejs.tmp
mv sdk/nodejs.tmp/bin sdk/nodejs
rm -r sdk/nodejs.tmp
Expand Down
11 changes: 11 additions & 0 deletions build/munge-package-json.awk
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/"pulumi"/ {
print;
print " \"name\": \"docker-buildkit\",";
next;
}

{
gsub("\\${VERSION}", version);
gsub("pluginDownloadURL", "server");
print;
}
Loading

0 comments on commit 5e77886

Please sign in to comment.