Skip to content

Commit 6f9ed66

Browse files
committed
chore: HoTT.Tests -> HoTT_Tests, HoTT.Contrib -> HoTT_Contrib
This fixes issues #2313 and #2285 by avoiding ambiguous module paths like HoTT.Contrib.X which could conflict with HoTT.X. Signed-off-by: Ali Caglayan <[email protected]>
1 parent 4116efc commit 6f9ed66

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Makefile.coq.local

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ CORE_DPDFILES=$(patsubst theories.%,file-dep-graphs/HoTT.%,$(subst /,.,$(CORE_VF
5757
# The list of files from contrib
5858
CONTRIB_VOFILES=$(CONTRIB_VFILES:.v=.$(VO))
5959
CONTRIB_GLOBFILES=$(CONTRIB_VFILES:.v=.glob)
60-
CONTRIB_HTMLFILES=$(patsubst contrib.%,html/HoTT.Contrib.%,$(subst /,.,$(CONTRIB_VFILES:.v=.html)))
60+
CONTRIB_HTMLFILES=$(patsubst contrib.%,html/HoTT_Contrib.%,$(subst /,.,$(CONTRIB_VFILES:.v=.html)))
6161
CONTRIB_TIMING_HTMLFILES=$(patsubst html/%,timing-html/%,$(CONTRIB_HTMLFILES))
6262

6363
# I'm not sure why we needs = rather than :=, but we seem to
@@ -160,7 +160,7 @@ $(CORE_TIMING_HTMLFILES) $(CATEGORY_TIMING_HTMLFILES): timing-html/HoTT.%.html :
160160
$(SHOW)'TIME2HTML HoTT.$* > $@'
161161
$(HIDE) etc/time2html "$(<:.vo=.v.timing)" "$(<:.vo=.v)" > $@
162162

163-
$(CONTRIB_TIMING_HTMLFILES): timing-html/HoTT.Contrib.%.html : contrib/$$(subst .,/,$$*).vo etc/time2html
163+
$(CONTRIB_TIMING_HTMLFILES): timing-html/HoTT_Contrib.%.html : contrib/$$(subst .,/,$$*).vo etc/time2html
164164
@ mkdir -p $(dir $@)
165165
$(SHOW)'TIME2HTML $* > $@'
166166
$(HIDE) etc/time2html "$(<:.vo=.v.timing)" "$(<:.vo=.v)" > $@

contrib/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
(coq.theory
2-
(name HoTT.Contrib)
2+
(name HoTT_Contrib)
33
(package coq-hott)
44
(theories HoTT))

dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
HoTT
3333
-Q
3434
contrib
35-
HoTT.Contrib
35+
HoTT_Contrib
3636
-Q
3737
test
38-
HoTT.Tests
38+
HoTT_Tests
3939
%{deps}
4040
-o)))
4141

etc/generate_coqproject.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ COQPROJECT_HEADER=\
2525
# found in etc/. It is set to be untracked by git.
2626
###############################################################################
2727
-R theories HoTT
28-
-Q contrib HoTT.Contrib
29-
-Q test HoTT.Tests
28+
-Q contrib HoTT_Contrib
29+
-Q test HoTT_Tests
3030
3131
-arg -noinit
3232
-arg -indices-matter
@@ -38,8 +38,8 @@ if [ "$GENERATE_COQPROJECT_FOR_DUNE" == "true" ]; then
3838
COQPROJECT_HEADER="$COQPROJECT_HEADER
3939
# Dune compatibility
4040
-R _build/default/theories HoTT
41-
-Q _build/default/contrib HoTT.Contrib
42-
-Q _build/default/test HoTT.Tests
41+
-Q _build/default/contrib HoTT_Contrib
42+
-Q _build/default/test HoTT_Tests
4343
"
4444
fi
4545

test/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(coq.theory
2-
(name HoTT.Tests)
2+
(name HoTT_Tests)
33
(theories HoTT))
44

55
(include_subdirs qualified)

0 commit comments

Comments
 (0)