Skip to content

Commit b902cb7

Browse files
authored
Merge pull request #245 from casework/add_unscheduled_supply_chain_review
Add supply-chain review target
2 parents f15d40a + 2a957d5 commit b902cb7

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.gitmodules

+4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
[submodule "dependencies/CASE-develop"]
22
path = dependencies/CASE-develop
33
url = https://github.com/casework/CASE.git
4+
branch = develop
45
[submodule "dependencies/CASE-develop-2.0.0"]
56
path = dependencies/CASE-develop-2.0.0
67
url = https://github.com/casework/CASE.git
8+
branch = develop-2.0.0
79
[submodule "dependencies/CASE-unstable"]
810
path = dependencies/CASE-unstable
911
url = https://github.com/casework/CASE-Archive.git
12+
branch = unstable
1013
[submodule "dependencies/CASE-unstable-2.0.0"]
1114
path = dependencies/CASE-unstable-2.0.0
1215
url = https://github.com/casework/CASE-Archive.git
16+
branch = unstable-2.0.0

Makefile

+26-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ all: \
3434
all-ontology \
3535
check-examples \
3636
check-migration-0.2.0 \
37-
check-ontology
37+
check-ontology \
38+
check-supply-chain \
39+
check-supply-chain-pre-commit \
40+
check-supply-chain-submodules
3841

3942
.dependencies.done.log: \
4043
.venv.done.log
@@ -138,6 +141,28 @@ check-ontology: \
138141
--directory ontology \
139142
check
140143

144+
# This target's dependencies potentially modify the working directory's Git state, so it is intentionally not a dependency of check.
145+
check-supply-chain: \
146+
check-supply-chain-pre-commit \
147+
check-supply-chain-submodules
148+
149+
check-supply-chain-pre-commit: \
150+
.venv-pre-commit/var/.pre-commit-built.log
151+
source .venv-pre-commit/bin/activate \
152+
&& pre-commit autoupdate
153+
git diff \
154+
--exit-code \
155+
.pre-commit-config.yaml
156+
157+
check-supply-chain-submodules: \
158+
.git_submodule_init.done.log
159+
git submodule update \
160+
--remote
161+
git diff \
162+
--exit-code \
163+
--ignore-submodules=dirty \
164+
dependencies
165+
141166
clean:
142167
@$(MAKE) \
143168
--directory examples \

0 commit comments

Comments
 (0)