Skip to content

Commit 34cd147

Browse files
authored
Remove system for pinning problem-specifications (#2084)
We now have CI workflows that raise issues when configlet finds something that needs updating. This is in conflict with the pinned problem-specifications approach.
1 parent a3e75d9 commit 34cd147

File tree

6 files changed

+11
-99
lines changed

6 files changed

+11
-99
lines changed

bin/checkout_pinned_problem_specifications_commit.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

bin/configlet_wrapper.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

bin/symlink_problem_specifications.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
#!/usr/bin/env bash
22
set -eo pipefail
33

4+
# This script creates a symlink to the problem-specifications cache used
5+
# by configlet. When working on an exercise, it is handy to have the
6+
# problem-specifions files in reach. Symlinking to configlet's cache ensures
7+
# you're always looking at the up-to-date files.
8+
49
cd "$(git rev-parse --show-toplevel)"
510

611
[ -e "problem-specifications" ] || ln -s "$(./bin/get_problem_specifications_dir.sh)" "problem-specifications"
712

8-
./bin/checkout_pinned_problem_specifications_commit.sh
13+
# ensure populated cache
14+
[ -f ./bin/configlet ] || ./bin/fetch-configlet
15+
./bin/configlet info &> /dev/null
916

1017
for exercise in exercises/practice/*; do
1118
name="$(basename "$exercise")"

bin/update_problem_specifications.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

justfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
_default:
22
just --list --unsorted
33

4-
# configlet wrapper, uses pinned problem-specifications commit
4+
# configlet (downloads if necessary)
55
@configlet *args="":
6-
./bin/configlet_wrapper.sh {{ args }}
7-
8-
# update the pinned commit hash
9-
update-problem-specs:
10-
./bin/update_problem_specifications.sh
6+
[ -f ./bin/configlet ] || ./bin/fetch-configlet
7+
./bin/configlet {{ args }}
118

129
# generate a new uuid straight to your clipboard
1310
uuid:

rust-tooling/generate/tests/tera_templates_are_in_sync.rs

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)