Skip to content

Commit 0f7a34d

Browse files
authored
Merge pull request #542 from nextstrain/migrate-shared-vendored
Migrate vendored/ to the shared/vendored git-subrepo
2 parents c289a14 + ed9f9dd commit 0f7a34d

38 files changed

Lines changed: 754 additions & 150 deletions

Snakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ onstart:
9494
print(f"\t${{{var}}}: " + ("YES" if os.environ.get(var, "") else "NO") + f"({description})")
9595
if send_notifications:
9696
message="🥗 GISAID ingest" if database=="gisaid" else "🥣 GenBank ingest"
97-
shell(f"./vendored/notify-on-job-start \"{message}\" nextstrain/ncov-ingest '.'")
97+
shell(f"./shared/vendored/scripts/notify-on-job-start \"{message}\" nextstrain/ncov-ingest '.'")
9898

9999
onsuccess:
100100
message = "✅ This pipeline has successfully finished 🎉"
@@ -106,7 +106,7 @@ onsuccess:
106106
onerror:
107107
print("Pipeline failed.")
108108
if send_notifications:
109-
shell("./vendored/notify-on-job-fail Ingest nextstrain/ncov-ingest")
109+
shell("./shared/vendored/scripts/notify-on-job-fail Ingest nextstrain/ncov-ingest")
110110
if not config.get("keep_all_files", False):
111111
print("Removing intermediate files (set config option keep_all_files to skip this)")
112112
shell("./bin/clean")

bin/archive-to-s3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ main() {
2323
# Docker image being stuck on AWS CLI v1, but the chance of collision is
2424
# slim with the timestamped filenames.
2525
# <https://github.com/nextstrain/docker-base/issues/216>
26-
"$(dirname "$0")/../vendored/upload-to-s3" --quiet "$src" "$dst"
26+
"$(dirname "$0")/../shared/vendored/scripts/upload-to-s3" --quiet "$src" "$dst"
2727
}
2828

2929
make_archive_filename() {

bin/generate-nextclade-version-json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -euo pipefail
44

5-
vendored="$(dirname "$0")"/../vendored
5+
vendored="$(dirname "$0")"/../shared/vendored/scripts
66

77

88
nextclade="${1:?A path to the Nextclade executable is required as the first argument}"

bin/notify-on-additional-info-change

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44
: "${SLACK_TOKEN:?The SLACK_TOKEN environment variable is required.}"
55
: "${SLACK_CHANNELS:?The SLACK_CHANNELS environment variable is required.}"
66

7-
vendored="$(dirname "$0")"/../vendored
7+
vendored="$(dirname "$0")"/../shared/vendored/scripts
88

99
src="${1:?A source additional info TSV file is required as the first argument.}"
1010
dst="${2:?A destination additional info TSV s3:// URL is required as the second argument.}"

bin/notify-on-duplicate-biosample-change

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44
: "${SLACK_TOKEN:?The SLACK_TOKEN environment variable is required.}"
55
: "${SLACK_CHANNELS:?The SLACK_CHANNELS environment variable is required.}"
66

7-
vendored="$(dirname "$0")"/../vendored
7+
vendored="$(dirname "$0")"/../shared/vendored/scripts
88

99
src="${1:?A source duplicate BioSample txt file is required as the first argument.}"
1010
dst="${2:?A destination duplicate BioSample txt s3:// URL is required as the second argument.}"

bin/notify-on-problem-data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44
: "${SLACK_TOKEN:?The SLACK_TOKEN environment variable is required.}"
55
: "${SLACK_CHANNELS:?The SLACK_CHANNELS environment variable is required.}"
66

7-
vendored="$(dirname "$0")"/../vendored
7+
vendored="$(dirname "$0")"/../shared/vendored/scripts
88

99
problem_data="${1:?A problem data TSV file is required as the first argument.}"
1010

bin/use-nextclade-cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -euo pipefail
33

44
bin="$(dirname "$0")"
5-
vendored="$bin"/../vendored
5+
vendored="$bin"/../shared/vendored/scripts
66

77
main() {
88
s3_dst="${1:?A destination s3:// URL where the renew file is hosted is required as the first argument.}"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Each ecosystem is checked on a scheduled interval defined below. To trigger
55
# a check manually, go to
66
#
7-
# https://github.com/nextstrain/ingest/network/updates
7+
# https://github.com/nextstrain/shared/network/updates
88
#
99
# and look for a "Check for updates" button. You may need to click around a
1010
# bit first.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ jobs:
1111
shellcheck:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v7
1515
- uses: nextstrain/.github/actions/shellcheck@master

0 commit comments

Comments
 (0)