diff --git a/.prettierignore b/.prettierignore index c26a447c078e..c3e0858a728a 100644 --- a/.prettierignore +++ b/.prettierignore @@ -42,4 +42,8 @@ typedoc.json origin-bucket-metadata.json # Ignore js scripts added to the static folder -static/js \ No newline at end of file +static/js + +# Ignore files installed with devbox +devbox.json +.devbox diff --git a/README.md b/README.md index 7c153d882312..d4b852b5dfef 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,13 @@ Additionally, to build the SDK and CLI documentation, you'll also need: * [Pulumi](https://www.pulumi.com/docs/install) * [Pulumi ESC](https://www.pulumi.com/docs/install/esc) +Alternatively, you can quickly launch a shell environment with all the required dependencies using [devbox](https://www.jetpack.io/devbox/): +``` +# Install devbox if needed +$ which devbox || curl -fsSL https://get.jetpack.io/devbox | bash +$ devbox shell +``` + ### Repository layout * **Documentation and page content**: We generally follow Hugo's [directory-structure conventions](https://gohugo.io/getting-started/directory-structure/), with Markdown files in `./content`, layout files (including partials and shortcodes) in `./layout`, and data files in `./data`. There are also several [Hugo templates](https://gohugo.io/content-management/archetypes/) available in `./archetypes` for bootstrapping common content types like blog posts and Learn modules. diff --git a/devbox.json b/devbox.json new file mode 100644 index 000000000000..4b414ad760da --- /dev/null +++ b/devbox.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.6/.schema/devbox.schema.json", + "packages": [ + "go@1.21", + "python@3.7", + "hugo@0.126", + "nodejs@18", + "dotnet-sdk@6", + "pulumi@3.99", + "pulumi-esc@latest" + ], + "env": { + "DEVBOX_COREPACK_ENABLED": "true", + "VENV_DIR": "venv" + }, + "shell": { + "init_hook": [ + ". $VENV_DIR/bin/activate" + ] + } +} diff --git a/devbox.lock b/devbox.lock new file mode 100644 index 000000000000..d85857ba56dd --- /dev/null +++ b/devbox.lock @@ -0,0 +1,367 @@ +{ + "lockfile_version": "1", + "packages": { + "dotnet-sdk@6": { + "last_modified": "2024-11-16T04:25:12Z", + "resolved": "github:NixOS/nixpkgs/34a626458d686f1b58139620a8b2793e9e123bba#dotnet-sdk", + "source": "devbox-search", + "version": "6.0.427", + "systems": { + "aarch64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/p1m94qjsxr6jkzagj1r83wyllrw8wj2b-dotnet-sdk-6.0.427", + "default": true + } + ], + "store_path": "/nix/store/p1m94qjsxr6jkzagj1r83wyllrw8wj2b-dotnet-sdk-6.0.427" + }, + "aarch64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/mi8lk7f9aqwakmb793wq1cn8q6z5iqjh-dotnet-sdk-6.0.427", + "default": true + } + ], + "store_path": "/nix/store/mi8lk7f9aqwakmb793wq1cn8q6z5iqjh-dotnet-sdk-6.0.427" + }, + "x86_64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/cg7f6ni6p44ykzpghp4p03vwqbr2dgm0-dotnet-sdk-6.0.427", + "default": true + } + ], + "store_path": "/nix/store/cg7f6ni6p44ykzpghp4p03vwqbr2dgm0-dotnet-sdk-6.0.427" + }, + "x86_64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/2ashk2ig3vb8s54mpyc2w5dgr4saqcvj-dotnet-sdk-6.0.427", + "default": true + } + ], + "store_path": "/nix/store/2ashk2ig3vb8s54mpyc2w5dgr4saqcvj-dotnet-sdk-6.0.427" + } + } + }, + "go@1.21": { + "last_modified": "2024-09-10T15:01:03Z", + "resolved": "github:NixOS/nixpkgs/5ed627539ac84809c78b2dd6d26a5cebeb5ae269#go_1_21", + "source": "devbox-search", + "version": "1.21.13", + "systems": { + "aarch64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/59bymri4pr8mq5zh678smrf381i3fmy2-go-1.21.13", + "default": true + } + ], + "store_path": "/nix/store/59bymri4pr8mq5zh678smrf381i3fmy2-go-1.21.13" + }, + "aarch64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/7dqbqicx8szqnyzag6l41gwbjmh1xdk0-go-1.21.13", + "default": true + } + ], + "store_path": "/nix/store/7dqbqicx8szqnyzag6l41gwbjmh1xdk0-go-1.21.13" + }, + "x86_64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/ws9bs446vgwmxchqnpjp9503x420iz75-go-1.21.13", + "default": true + } + ], + "store_path": "/nix/store/ws9bs446vgwmxchqnpjp9503x420iz75-go-1.21.13" + }, + "x86_64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/yij3vkkjv7ghn055v0rqhbjzyh0dy4nq-go-1.21.13", + "default": true + } + ], + "store_path": "/nix/store/yij3vkkjv7ghn055v0rqhbjzyh0dy4nq-go-1.21.13" + } + } + }, + "hugo@0.126": { + "last_modified": "2024-06-04T00:03:09Z", + "resolved": "github:NixOS/nixpkgs/3b01abcc24846ae49957b30f4345bab4b3f1d14b#hugo", + "source": "devbox-search", + "version": "0.126.3", + "systems": { + "aarch64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/vkg3fy81l6p2g0fmgc0wvgjhmjk97ghy-hugo-0.126.3", + "default": true + } + ], + "store_path": "/nix/store/vkg3fy81l6p2g0fmgc0wvgjhmjk97ghy-hugo-0.126.3" + }, + "aarch64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/wvay2iwdsxvr481c70k98xfrr669bywz-hugo-0.126.3", + "default": true + } + ], + "store_path": "/nix/store/wvay2iwdsxvr481c70k98xfrr669bywz-hugo-0.126.3" + }, + "x86_64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/jfps3j0w7h9y6xsn8aryrpl948ycpnm7-hugo-0.126.3", + "default": true + } + ], + "store_path": "/nix/store/jfps3j0w7h9y6xsn8aryrpl948ycpnm7-hugo-0.126.3" + }, + "x86_64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/dsazc5gd0i0923vimsvy30xya7nhi22b-hugo-0.126.3", + "default": true + } + ], + "store_path": "/nix/store/dsazc5gd0i0923vimsvy30xya7nhi22b-hugo-0.126.3" + } + } + }, + "nodejs@18": { + "last_modified": "2024-12-03T12:40:06Z", + "plugin_version": "0.0.2", + "resolved": "github:NixOS/nixpkgs/566e53c2ad750c84f6d31f9ccb9d00f823165550#nodejs_18", + "source": "devbox-search", + "version": "18.20.5", + "systems": { + "aarch64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/6dlw5588gs7whckfx2l0iyd8xi4gklq6-nodejs-18.20.5", + "default": true + }, + { + "name": "libv8", + "path": "/nix/store/a40q0j0m27m1dxy9i94accm5zaknpx2k-nodejs-18.20.5-libv8" + } + ], + "store_path": "/nix/store/6dlw5588gs7whckfx2l0iyd8xi4gklq6-nodejs-18.20.5" + }, + "aarch64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/qa34xfgbvrpdymlr31ai4vjym7pmvapn-nodejs-18.20.5", + "default": true + }, + { + "name": "libv8", + "path": "/nix/store/wqi5b71jkvyw2lv81j2ydgchhywdrn1q-nodejs-18.20.5-libv8" + } + ], + "store_path": "/nix/store/qa34xfgbvrpdymlr31ai4vjym7pmvapn-nodejs-18.20.5" + }, + "x86_64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/211dnaznay3942xf2gykgshcflcsr4f8-nodejs-18.20.5", + "default": true + }, + { + "name": "libv8", + "path": "/nix/store/cc6k5wryplskfs7bbmcnzwvv2c3nh219-nodejs-18.20.5-libv8" + } + ], + "store_path": "/nix/store/211dnaznay3942xf2gykgshcflcsr4f8-nodejs-18.20.5" + }, + "x86_64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/nmmgwk1a0cakhmhwgf1v2b5ws3zf899h-nodejs-18.20.5", + "default": true + }, + { + "name": "libv8", + "path": "/nix/store/3kp2j4w0k9cb7r29wq2iv8kyp7hw1dqs-nodejs-18.20.5-libv8" + } + ], + "store_path": "/nix/store/nmmgwk1a0cakhmhwgf1v2b5ws3zf899h-nodejs-18.20.5" + } + } + }, + "pulumi-esc@latest": { + "last_modified": "2024-11-28T07:51:56Z", + "resolved": "github:NixOS/nixpkgs/226216574ada4c3ecefcbbec41f39ce4655f78ef#pulumi-esc", + "source": "devbox-search", + "version": "0.11.0", + "systems": { + "aarch64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/gpqqsmjhjn17k16vmkrn8a4lip9qw0ja-pulumi-esc-0.11.0", + "default": true + } + ], + "store_path": "/nix/store/gpqqsmjhjn17k16vmkrn8a4lip9qw0ja-pulumi-esc-0.11.0" + }, + "aarch64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/s4gn62k0in5kiaplgiawvvmqa36xj8v9-pulumi-esc-0.11.0", + "default": true + } + ], + "store_path": "/nix/store/s4gn62k0in5kiaplgiawvvmqa36xj8v9-pulumi-esc-0.11.0" + }, + "x86_64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/ih1y8kgfr8wkdh0qqbla1fz0h4ipyc40-pulumi-esc-0.11.0", + "default": true + } + ], + "store_path": "/nix/store/ih1y8kgfr8wkdh0qqbla1fz0h4ipyc40-pulumi-esc-0.11.0" + }, + "x86_64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/rk9y1i4bm905f9smsw6d8qf108x4xlfz-pulumi-esc-0.11.0", + "default": true + } + ], + "store_path": "/nix/store/rk9y1i4bm905f9smsw6d8qf108x4xlfz-pulumi-esc-0.11.0" + } + } + }, + "pulumi@3.99": { + "last_modified": "2024-07-07T07:43:47Z", + "resolved": "github:NixOS/nixpkgs/b60793b86201040d9dee019a05089a9150d08b5b#pulumi", + "source": "devbox-search", + "version": "3.99.0", + "systems": { + "aarch64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/f4lfi4fas8pm0ad6qyqlb8h8r19ka2mb-pulumi-3.99.0", + "default": true + } + ], + "store_path": "/nix/store/f4lfi4fas8pm0ad6qyqlb8h8r19ka2mb-pulumi-3.99.0" + }, + "aarch64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/8jcd9chg00wb9m3lsw7vkcfpwpfwb43x-pulumi-3.99.0", + "default": true + } + ], + "store_path": "/nix/store/8jcd9chg00wb9m3lsw7vkcfpwpfwb43x-pulumi-3.99.0" + }, + "x86_64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/nv4gwssvvscq1y7i3bjk6llbv2bmwxlv-pulumi-3.99.0", + "default": true + } + ], + "store_path": "/nix/store/nv4gwssvvscq1y7i3bjk6llbv2bmwxlv-pulumi-3.99.0" + }, + "x86_64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/i43skxbhsfry9f97gjdygzgsmchlfj7q-pulumi-3.99.0", + "default": true + } + ], + "store_path": "/nix/store/i43skxbhsfry9f97gjdygzgsmchlfj7q-pulumi-3.99.0" + } + } + }, + "python@3.7": { + "last_modified": "2022-12-17T09:19:40Z", + "plugin_version": "0.0.4", + "resolved": "github:NixOS/nixpkgs/80c24eeb9ff46aa99617844d0c4168659e35175f#python37", + "source": "devbox-search", + "version": "3.7.16", + "systems": { + "aarch64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/a89sd5jwn01cdg97lkspl8cpf75y5142-python3-3.7.16", + "default": true + } + ], + "store_path": "/nix/store/a89sd5jwn01cdg97lkspl8cpf75y5142-python3-3.7.16" + }, + "aarch64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/ymrbxfmljyl73rmh5cfk0bzk3ydcbqg8-python3-3.7.16", + "default": true + }, + { + "name": "debug", + "path": "/nix/store/3x7736j3fyw6j9fzn1y9fc0iqyf1rncc-python3-3.7.16-debug" + } + ], + "store_path": "/nix/store/ymrbxfmljyl73rmh5cfk0bzk3ydcbqg8-python3-3.7.16" + }, + "x86_64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/i028a4nf177g23ksa7kc63ld9nys17nb-python3-3.7.16", + "default": true + } + ], + "store_path": "/nix/store/i028a4nf177g23ksa7kc63ld9nys17nb-python3-3.7.16" + }, + "x86_64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/ik7s754pwxhiky396mjagzmjs1kp0wzq-python3-3.7.16", + "default": true + }, + { + "name": "debug", + "path": "/nix/store/l0xi13a88d4vjn8ada3a58zkwm88hq7h-python3-3.7.16-debug" + } + ], + "store_path": "/nix/store/ik7s754pwxhiky396mjagzmjs1kp0wzq-python3-3.7.16" + } + } + } + } +} diff --git a/package.json b/package.json index 2fed403a13aa..d6d237b022cf 100644 --- a/package.json +++ b/package.json @@ -41,5 +41,6 @@ "devDependencies": { "husky": "^9.0.11", "prettier": "^2.6.2" - } + }, + "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" } diff --git a/scripts/build-site.sh b/scripts/build-site.sh index c0bc21bfdf06..d4ed1608dd67 100755 --- a/scripts/build-site.sh +++ b/scripts/build-site.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/ci-bucket-cleanup.sh b/scripts/ci-bucket-cleanup.sh index 6332b4c1c48b..85f4d7df72c1 100755 --- a/scripts/ci-bucket-cleanup.sh +++ b/scripts/ci-bucket-cleanup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/ci-login.sh b/scripts/ci-login.sh index 3ab3ae06e995..fc05c4a8f00a 100755 --- a/scripts/ci-login.sh +++ b/scripts/ci-login.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/ci-pull-request-closed.sh b/scripts/ci-pull-request-closed.sh index 9d00249c825d..70b9cfa40c42 100755 --- a/scripts/ci-pull-request-closed.sh +++ b/scripts/ci-pull-request-closed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/ci-pull-request.sh b/scripts/ci-pull-request.sh index 029d25a6be87..816c6fcf44ce 100755 --- a/scripts/ci-pull-request.sh +++ b/scripts/ci-pull-request.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/ci-push.sh b/scripts/ci-push.sh index fcb2cecdd9fb..43c1dddbe41d 100755 --- a/scripts/ci-push.sh +++ b/scripts/ci-push.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/ci-update-search-index.sh b/scripts/ci-update-search-index.sh index 326f29b5f27e..897e9f64eccf 100755 --- a/scripts/ci-update-search-index.sh +++ b/scripts/ci-update-search-index.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script downloads the search indexes for registry and docs from pulumi.com then combines # the two indexes and pushes them to Algolia. diff --git a/scripts/clean.sh b/scripts/clean.sh index cc35d9bca7b7..32c7f2233519 100755 --- a/scripts/clean.sh +++ b/scripts/clean.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash yarn cache clean hugo mod clean diff --git a/scripts/common.sh b/scripts/common.sh index be3047da924a..2b300b7fcd7e 100755 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash aws_region() { echo "$(pulumi -C infrastructure config get 'aws:region')" diff --git a/scripts/create-dev-stack.sh b/scripts/create-dev-stack.sh index 7401c22394ff..0bcaac608846 100755 --- a/scripts/create-dev-stack.sh +++ b/scripts/create-dev-stack.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/deploy-dev-stack.sh b/scripts/deploy-dev-stack.sh index a0724df5454f..cc6c6b44d0d8 100755 --- a/scripts/deploy-dev-stack.sh +++ b/scripts/deploy-dev-stack.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/destroy-dev-stack.sh b/scripts/destroy-dev-stack.sh index 2d4e85c333b1..b31ef2ba6e13 100755 --- a/scripts/destroy-dev-stack.sh +++ b/scripts/destroy-dev-stack.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/detect-new-404s.sh b/scripts/detect-new-404s.sh index 0b12f35f7711..18402741ad64 100755 --- a/scripts/detect-new-404s.sh +++ b/scripts/detect-new-404s.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/ensure.sh b/scripts/ensure.sh index 57e78d9e7ef5..3adcda4012dd 100755 --- a/scripts/ensure.sh +++ b/scripts/ensure.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/format.sh b/scripts/format.sh index db8eabdb7570..54b1a82c7619 100755 --- a/scripts/format.sh +++ b/scripts/format.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/gen_all_resource_docs.sh b/scripts/gen_all_resource_docs.sh index 5edb4a4674eb..2b4ffdc7a4e9 100755 --- a/scripts/gen_all_resource_docs.sh +++ b/scripts/gen_all_resource_docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # A script to generate the schema-based resource docs for all of the providers for which we can generate # a Pulumi schema. diff --git a/scripts/gen_component_docs.sh b/scripts/gen_component_docs.sh index 9024a0dc87e0..5817e6c95614 100755 --- a/scripts/gen_component_docs.sh +++ b/scripts/gen_component_docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o nounset -o errexit -o pipefail diff --git a/scripts/gen_package_metadata.sh b/scripts/gen_package_metadata.sh index bfacd633cccb..7d901e7c0ca7 100755 --- a/scripts/gen_package_metadata.sh +++ b/scripts/gen_package_metadata.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # A script that facilitates generating package metadata files using the tools/resourcedocsgen Go-based # tool. This script optionally allows passing the provider name (without the "pulumi-" prefix.) diff --git a/scripts/gen_resource_docs.sh b/scripts/gen_resource_docs.sh index 267caa34d1e3..a0008b1836c4 100755 --- a/scripts/gen_resource_docs.sh +++ b/scripts/gen_resource_docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # A script that facilitates generating resource docs using the tools/resourcedocsgen Go-based # tool. This script optionally allows passing the provider name (without the "pulumi-" prefix.) diff --git a/scripts/generate-search-index.sh b/scripts/generate-search-index.sh index 7521ed0a676e..33510b8dae2b 100755 --- a/scripts/generate-search-index.sh +++ b/scripts/generate-search-index.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/laptop-deploy.sh b/scripts/laptop-deploy.sh index 5dc5a98de581..947fbdfc3251 100755 --- a/scripts/laptop-deploy.sh +++ b/scripts/laptop-deploy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/lint.sh b/scripts/lint.sh index 3c37b303f950..7809965a5589 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/list-recent-buckets.sh b/scripts/list-recent-buckets.sh index b1ec181eb1e1..7d8388e89b5c 100755 --- a/scripts/list-recent-buckets.sh +++ b/scripts/list-recent-buckets.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/make-s3-redirects.sh b/scripts/make-s3-redirects.sh index fc31e81a1413..f322978cbad6 100755 --- a/scripts/make-s3-redirects.sh +++ b/scripts/make-s3-redirects.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/normalize-video.sh b/scripts/normalize-video.sh index 95a0b4ed3762..ec85d0e80c73 100755 --- a/scripts/normalize-video.sh +++ b/scripts/normalize-video.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script takes an input video path (relative is fine) and converts it to H.264 MP4 format with AAC audio, # downscaling to 1200-pixel max-width where necessary. Converted files are written to ${filename}-${video_codec}.${extension}. diff --git a/scripts/on-demand-build-sync-test.sh b/scripts/on-demand-build-sync-test.sh index 278e524668f3..badfebfa8077 100755 --- a/scripts/on-demand-build-sync-test.sh +++ b/scripts/on-demand-build-sync-test.sh @@ -1,6 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/remove-recent-buckets.sh b/scripts/remove-recent-buckets.sh index 49ba211299f6..1828b7bb9421 100755 --- a/scripts/remove-recent-buckets.sh +++ b/scripts/remove-recent-buckets.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/resource_docs_common.sh b/scripts/resource_docs_common.sh index f7d7a9f1fe7f..89ce2d2b2c21 100644 --- a/scripts/resource_docs_common.sh +++ b/scripts/resource_docs_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script contains common functions used in the scripts for API docs generation. diff --git a/scripts/run-browser-tests.sh b/scripts/run-browser-tests.sh index 00236a24f685..a2ad1d9599fa 100755 --- a/scripts/run-browser-tests.sh +++ b/scripts/run-browser-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash MAX_RETRIES=3 RETRY_COUNT=0 diff --git a/scripts/run-pulumi.sh b/scripts/run-pulumi.sh index d3ab4a8ecccc..b1b59c8acee8 100755 --- a/scripts/run-pulumi.sh +++ b/scripts/run-pulumi.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Run Pulumi to update the stack targeted by the given branch. diff --git a/scripts/run-unit-tests.sh b/scripts/run-unit-tests.sh index 0561fa143502..ce77b67bf39c 100755 --- a/scripts/run-unit-tests.sh +++ b/scripts/run-unit-tests.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash yarn --cwd components test diff --git a/scripts/run_docfx.sh b/scripts/run_docfx.sh index aebdbb2e76c3..c737c7f82a0e 100755 --- a/scripts/run_docfx.sh +++ b/scripts/run_docfx.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Usage: run_docfx set -o nounset -o errexit -o pipefail diff --git a/scripts/run_typedoc.sh b/scripts/run_typedoc.sh index 0aca3763aa19..754eaef0d8e4 100755 --- a/scripts/run_typedoc.sh +++ b/scripts/run_typedoc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Runs typedoc on various Pulumi repos and copies them to # the /libraries folder. diff --git a/scripts/serve.sh b/scripts/serve.sh index fe98417f7a57..fefca0bd655e 100755 --- a/scripts/serve.sh +++ b/scripts/serve.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/sync-and-test-bucket.sh b/scripts/sync-and-test-bucket.sh index bc58d4ebb8a2..8d45c8d9f885 100755 --- a/scripts/sync-and-test-bucket.sh +++ b/scripts/sync-and-test-bucket.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit -o pipefail diff --git a/scripts/update_repos.sh b/scripts/update_repos.sh index 01d846834a8a..a1e6cc68bf7e 100755 --- a/scripts/update_repos.sh +++ b/scripts/update_repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Usage: update_repos set -o nounset -o errexit -o pipefail diff --git a/scripts/validate-sitemap-urls.sh b/scripts/validate-sitemap-urls.sh index 6fbcb1251bca..fe2f56186bce 100755 --- a/scripts/validate-sitemap-urls.sh +++ b/scripts/validate-sitemap-urls.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash request_and_format_sitemap() { curl https://www.pulumi.com/sitemap.xml > sitemap.xml && xmllint --format sitemap.xml > temp_sitemap.xml && mv temp_sitemap.xml sitemap.xml