Skip to content

Commit ba95a4e

Browse files
committed
Upgrade version to 0.9.3
* Fix `drom new` to use correctly `--drom-share` argument * Fix drom.toml to use latest drom-share version with fixes for dune Should fix github CI * Use :version in dune files instead of version, starting with drom-version = 0.9.3 * Set OCaml min-version to 4.14 * set directories min-version to 0.6 * Remove approx merlin in dune-project
1 parent 520345e commit ba95a4e

36 files changed

Lines changed: 270 additions & 347 deletions

.drom

Lines changed: 12 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ version:0.9.0
55

66
# hash of toml configuration files
77
# used for generation of all files
8-
812a88073a143fbfd65d11dd1ac586fd:.
8+
1a7f438a9a5be7f02e5bef42dc8bf870:.
99
# end context for .
1010

1111
# begin context for .github/workflows/workflow.yml
1212
# file .github/workflows/workflow.yml
13-
eee26f5d13b222b48706c4fcbd98a19a:.github/workflows/workflow.yml
13+
89b0f9c99502d62badaf5677ea2647e7:.github/workflows/workflow.yml
1414
# end context for .github/workflows/workflow.yml
1515

1616
# begin context for .gitignore
1717
# file .gitignore
18-
33c88a25e8b40f3683f6c03ec26be5db:.gitignore
18+
f7a24abcad0ba9301c03bb64464b1718:.gitignore
1919
# end context for .gitignore
2020

2121
# begin context for .ocamlformat
@@ -40,7 +40,7 @@ eee26f5d13b222b48706c4fcbd98a19a:.github/workflows/workflow.yml
4040

4141
# begin context for LICENSE.md
4242
# file LICENSE.md
43-
8fc45323c2500fb66e52deb392dda4f2:LICENSE.md
43+
cf4da9c43c0026cec0ba46b9cfe8407e:LICENSE.md
4444
# end context for LICENSE.md
4545

4646
# begin context for Makefile
@@ -88,31 +88,11 @@ e739f3026aa997af4026bc428f4c9ef6:docs/favicon.png
8888
c8281f46ba9a11d0b61bc8ef67eaa357:docs/style.css
8989
# end context for docs/style.css
9090

91-
# begin context for docs\README.txt
92-
# file docs\README.txt
93-
bfbacf00053bb9ab2a6e2ce94ed4a642:docs\README.txt
94-
# end context for docs\README.txt
95-
96-
# begin context for docs\favicon.png
97-
# file docs\favicon.png
98-
e739f3026aa997af4026bc428f4c9ef6:docs\favicon.png
99-
# end context for docs\favicon.png
100-
101-
# begin context for docs\style.css
102-
# file docs\style.css
103-
c8281f46ba9a11d0b61bc8ef67eaa357:docs\style.css
104-
# end context for docs\style.css
105-
10691
# begin context for dot_gitattributes
10792
# file dot_gitattributes
10893
20bbe7a5dbb3c3278a1511d960616fe5:dot_gitattributes
10994
# end context for dot_gitattributes
11095

111-
# begin context for dot_github\workflows\workflow.yml
112-
# file dot_github\workflows\workflow.yml
113-
004b92dd628d26b4f8a5a5139bf4aa79:dot_github\workflows\workflow.yml
114-
# end context for dot_github\workflows\workflow.yml
115-
11696
# begin context for drom.toml
11797
# file drom.toml
11898
9949d65b87e55480a30122e9e77ae7d3:drom.toml
@@ -125,22 +105,22 @@ e850a13c004f963e9f5a568eac93c217:dune
125105

126106
# begin context for dune-project
127107
# file dune-project
128-
7f0439af8599faf105447755ebd72e7e:dune-project
108+
b5f0d96d72a9cbd9f919146017fd56ce:dune-project
129109
# end context for dune-project
130110

131111
# begin context for opam/drom.opam
132112
# file opam/drom.opam
133-
ff84198ff87fa46b8ac39ed2951d2d26:opam/drom.opam
113+
19e1a75cf2fe4fc2efe908b9198dced6:opam/drom.opam
134114
# end context for opam/drom.opam
135115

136116
# begin context for opam/drom_lib.opam
137117
# file opam/drom_lib.opam
138-
788b17212e259bbb8fe7c22c85c76d35:opam/drom_lib.opam
118+
ba1d14620d3d4d4b8b556ffb4f88689e:opam/drom_lib.opam
139119
# end context for opam/drom_lib.opam
140120

141121
# begin context for opam/drom_toml.opam
142122
# file opam/drom_toml.opam
143-
e55d659410b556d7bc60183d8ff1f788:opam/drom_toml.opam
123+
efefcfe94894b254753121a1db1c1a29:opam/drom_toml.opam
144124
# end context for opam/drom_toml.opam
145125

146126
# begin context for scripts/after.sh
@@ -163,16 +143,6 @@ e55d659410b556d7bc60183d8ff1f788:opam/drom_toml.opam
163143
cda3f8bad69d9c6e8cbeab1c720d739a:scripts/static-build.sh
164144
# end context for scripts/static-build.sh
165145

166-
# begin context for scripts\after.sh
167-
# file scripts\after.sh
168-
cb2282903fb6ae1ac71fb2fbbcccffbd:scripts\after.sh
169-
# end context for scripts\after.sh
170-
171-
# begin context for scripts\before.sh
172-
# file scripts\before.sh
173-
97c9b1f22a04f7c0b42477aee6f4393e:scripts\before.sh
174-
# end context for scripts\before.sh
175-
176146
# begin context for sphinx/_static/css/fixes.css
177147
# file sphinx/_static/css/fixes.css
178148
68b329da9893e34099c7d8ad5cb9c940:sphinx/_static/css/fixes.css
@@ -200,24 +170,9 @@ a44c87f3a364dd95f55427fe40b2c5d1:sphinx/about.rst
200170

201171
# begin context for sphinx/license.rst
202172
# file sphinx/license.rst
203-
8f504f01aea592543c0a662b81169d91:sphinx/license.rst
173+
a02d5245d1626431fbfc4bdb99a413cf:sphinx/license.rst
204174
# end context for sphinx/license.rst
205175

206-
# begin context for sphinx\conf.py
207-
# file sphinx\conf.py
208-
67496ee935ab27fdabb4544f4f81eeb6:sphinx\conf.py
209-
# end context for sphinx\conf.py
210-
211-
# begin context for sphinx\license.rst
212-
# file sphinx\license.rst
213-
8f504f01aea592543c0a662b81169d91:sphinx\license.rst
214-
# end context for sphinx\license.rst
215-
216-
# begin context for sphinx\under_static\css\fixes.css
217-
# file sphinx\under_static\css\fixes.css
218-
20bbe7a5dbb3c3278a1511d960616fe5:sphinx\under_static\css\fixes.css
219-
# end context for sphinx\under_static\css\fixes.css
220-
221176
# begin context for src/drom/dune
222177
# file src/drom/dune
223178
68aec4169671c0163b98bb38205d2e4d:src/drom/dune
@@ -243,14 +198,9 @@ a44c87f3a364dd95f55427fe40b2c5d1:sphinx/about.rst
243198
bb6803d414fd5a5479ed6381914604de:src/drom/package.toml
244199
# end context for src/drom/package.toml
245200

246-
# begin context for src/drom\index.mld
247-
# file src/drom\index.mld
248-
2818d15f527a37c2cfafe85ef89f675b:src/drom\index.mld
249-
# end context for src/drom\index.mld
250-
251201
# begin context for src/drom_lib/dune
252202
# file src/drom_lib/dune
253-
103b365e9f24dbbae02b6be22b3efd0a:src/drom_lib/dune
203+
42d9d18b7b63adfd834f4de13c4fd892:src/drom_lib/dune
254204
# end context for src/drom_lib/dune
255205

256206
# begin context for src/drom_lib/index.mld
@@ -265,24 +215,9 @@ c4d6597dc5b0966758c213bfffb9d594:src/drom_lib/package.toml
265215

266216
# begin context for src/drom_lib/version.mlt
267217
# file src/drom_lib/version.mlt
268-
a3e5d8a00664ceaa6addf376bedf6de1:src/drom_lib/version.mlt
218+
ad0048099dd6df9d2c73875be2ba28e7:src/drom_lib/version.mlt
269219
# end context for src/drom_lib/version.mlt
270220

271-
# begin context for src/drom_lib\dune
272-
# file src/drom_lib\dune
273-
8c189e7a8bac651b008889b1dd38a8fe:src/drom_lib\dune
274-
# end context for src/drom_lib\dune
275-
276-
# begin context for src/drom_lib\index.mld
277-
# file src/drom_lib\index.mld
278-
3e03ec5e98f99c1d5b09dd366177ad13:src/drom_lib\index.mld
279-
# end context for src/drom_lib\index.mld
280-
281-
# begin context for src/drom_lib\version.mlt
282-
# file src/drom_lib\version.mlt
283-
a3e5d8a00664ceaa6addf376bedf6de1:src/drom_lib\version.mlt
284-
# end context for src/drom_lib\version.mlt
285-
286221
# begin context for src/toml.7.1.0/dune
287222
# file src/toml.7.1.0/dune
288223
0841a2e47118b9fcd9b900f84ff66c34:src/toml.7.1.0/dune
@@ -305,19 +240,9 @@ d1b05207fce876a1b44a8b268bcaf226:src/toml.7.1.0/index.mld
305240

306241
# begin context for src/toml.7.1.0/version.mlt
307242
# file src/toml.7.1.0/version.mlt
308-
a3e5d8a00664ceaa6addf376bedf6de1:src/toml.7.1.0/version.mlt
243+
ad0048099dd6df9d2c73875be2ba28e7:src/toml.7.1.0/version.mlt
309244
# end context for src/toml.7.1.0/version.mlt
310245

311-
# begin context for src/toml.7.1.0\index.mld
312-
# file src/toml.7.1.0\index.mld
313-
d1b05207fce876a1b44a8b268bcaf226:src/toml.7.1.0\index.mld
314-
# end context for src/toml.7.1.0\index.mld
315-
316-
# begin context for src/toml.7.1.0\version.mlt
317-
# file src/toml.7.1.0\version.mlt
318-
a3e5d8a00664ceaa6addf376bedf6de1:src/toml.7.1.0\version.mlt
319-
# end context for src/toml.7.1.0\version.mlt
320-
321246
# begin context for test/expect-tests/dune
322247
# file test/expect-tests/dune
323248
d7e2675a767e30edf28d061c94f0ec62:test/expect-tests/dune
@@ -387,13 +312,3 @@ ee63957b3b77455a12e6c269a5032c3f:test/output-tests/test2.expected
387312
# file test/output-tests/test2.ml
388313
e8eaab7626ef0aace5e570fffe81f869:test/output-tests/test2.ml
389314
# end context for test/output-tests/test2.ml
390-
391-
# begin context for test\inline-tests\test.ml
392-
# file test\inline-tests\test.ml
393-
37b8bc6035cda6302a80178c61f9626e:test\inline-tests\test.ml
394-
# end context for test\inline-tests\test.ml
395-
396-
# begin context for test\output-tests\test1.expected
397-
# file test\output-tests\test1.expected
398-
dc8d6157230e9ef8e965865f990fbc49:test\output-tests\test1.expected
399-
# end context for test\output-tests\test1.expected

.github/workflows/workflow.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ jobs:
2525

2626
include:
2727
- os: ubuntu-latest
28-
ocaml-compiler: 4.08.0
28+
ocaml-compiler: 4.14.0
2929
skip_test: true
3030

3131

32+
# we need permissions to deploy docs
33+
permissions:
34+
contents: write
35+
3236
runs-on: ${{ matrix.os }}
3337

3438
# use fields.github-workflow-env to add something here
@@ -38,20 +42,19 @@ jobs:
3842
uses: actions/checkout@v2
3943

4044
- name: Retrieve opam cache
41-
uses: actions/cache@v2
45+
uses: actions/cache@v4
4246
id: cache-opam
4347
with:
4448
path: ~/.opam
45-
key: v2-${{ runner.os }}-drom-${{ matrix.ocaml-compiler }}-${{ hashFiles('opam/*.opam') }}
49+
key: v4-${{ runner.os }}-drom-${{ matrix.ocaml-compiler }}-${{ hashFiles('opam/*.opam') }}
4650
# restore-keys: |
47-
# v2-${{ runner.os }}-opam-${{ matrix.ocaml-compiler }}-
51+
# v4-${{ runner.os }}-opam-${{ matrix.ocaml-compiler }}-
4852

4953
- name: Use OCaml ${{ matrix.ocaml-compiler }}
50-
uses: avsm/setup-ocaml@v2
54+
uses: avsm/setup-ocaml@v3
5155
with:
5256
ocaml-compiler: ${{ matrix.ocaml-compiler }}
5357
opam-pin: false
54-
opam-depext: false
5558

5659
- name: Set git user
5760
run: |
@@ -62,14 +65,7 @@ jobs:
6265

6366
- run: opam pin add . -y --no-action
6467

65-
- run: opam depext -y drom drom_lib drom_toml
66-
# if: steps.cache-opam.outputs.cache-hit != 'true'
67-
68-
- run: opam install -y opam/*.opam --deps-only --with-test
69-
# if: steps.cache-opam.outputs.cache-hit != 'true'
70-
71-
# - run: opam upgrade --fixup
72-
# if: steps.cache-opam.outputs.cache-hit == 'true'
68+
- run: opam install -y ./opam/*.opam --deps-only --with-test
7369

7470
# Use fields.build-scripts to add more scripts to convert here
7571
- run: dos2unix scripts/*.sh

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
*~
33
_build
44
.merlin
5-
.vscode
65
/_drom
76
/_opam
87
/_build

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2024 OCamlPro SAS
1+
Copyright (c) 2025 OCamlPro SAS
22

33
This software is distributed under the terms of the
44
GNU Lesser General Public License (LGPL) version 2.1 (included below).

drom.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[project]
22
create-project = false
3-
drom-version = "0.1"
4-
share-repo = "https://github.com/OCamlPro/drom-share"
5-
share-version = "0.9.0"
3+
drom-version = "0.9.3"
4+
#share-repo = "https://github.com/OCamlPro/drom-share"
5+
share-repo = "/home/lefessan/GIT/ocp/github/drom-share"
6+
share-version = "0.9.3"
67

78
[project]
89
authors = ["Fabrice Le Fessant <fabrice.le_fessant@ocamlpro.com>", "Léo Andrès <leo.andres@ocamlpro.com>"]
@@ -11,11 +12,11 @@ copyright = "OCamlPro SAS"
1112
edition = "4.14.1"
1213
github-organization = "ocamlpro"
1314
license = "LGPL2"
14-
min-edition = "4.08.0"
15+
min-edition = "4.14.0"
1516
name = "drom"
1617
skeleton = "program"
1718
synopsis = "The drom tool is a wrapper over opam/dune in an attempt to provide a cargo-like user experience"
18-
version = "0.9.2"
19+
version = "0.9.3"
1920

2021
# keys that you could also define:
2122
# odoc-target = "...odoc-target..."

dune-project

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
(cram enable)
55
(name drom)
6-
(allow_approximate_merlin)
76
(generate_opam_files false)
8-
(version 0.9.2)
7+
(version 0.9.3)
98
(formatting (enabled_for ocaml reason))
109
(using menhir 2.0)
1110

@@ -19,8 +18,8 @@
1918
)
2019

2120
(depends
22-
(ocaml (>= 4.08.0))
23-
(drom_lib (= version))
21+
(ocaml (>= 4.14.0))
22+
(drom_lib (= :version))
2423
ppx_inline_test
2524
ppx_expect
2625
odoc
@@ -39,7 +38,7 @@
3938
)
4039

4140
(depends
42-
(ocaml (>= 4.08.0))
41+
(ocaml (>= 4.14.0))
4342
(ppx_protocol_conv ( >= 5.2.1 ))
4443
(otoml ( >= 1.0.4 ))
4544
(omd ( >= 2.0 ))
@@ -49,9 +48,9 @@
4948
(ez_opam_file (and (>= 0.1.0) (< 1.0.0)))
5049
(ez_file (and (>= 0.3.0) (< 1.0.0)))
5150
(ez_cmdliner (and (>= 0.2.0) (< 1.0.0)))
52-
(drom_toml (= version))
53-
(directories ( >= 0.2 ))
54-
bos
51+
(drom_toml (= :version))
52+
(directories ( >= 0.6 ))
53+
(bos ( >= 0.2.1 ))
5554
ppx_inline_test
5655
ppx_expect
5756
odoc
@@ -70,7 +69,7 @@
7069
)
7170

7271
(depends
73-
(ocaml (>= 4.08.0))
72+
(ocaml (>= 4.14.0))
7473
(menhirLib ( > 2019 ))
7574
(ISO8601 ( >= 0.2 ))
7675
(menhir ( > 2019 ))
@@ -82,4 +81,7 @@
8281
)
8382
)
8483

84+
; the next line is deprecated for recent versions of dune, but
85+
; can still be added into the dune-project-trailer field
86+
;(allow_approximate_merlin)
8587

opam/drom.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Do not modify, or add to the `skip` field of `drom.toml`.
33
opam-version: "2.0"
44
name: "drom"
5-
version: "0.9.2"
5+
version: "0.9.3"
66
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
77
synopsis:
88
"The drom tool is a wrapper over opam/dune in an attempt to provide a cargo-like user experience"
@@ -45,7 +45,7 @@ install: [
4545
["sh" "-c" "./scripts/before.sh install '%{name}%'"]
4646
]
4747
depends: [
48-
"ocaml" {>= "4.08.0"}
48+
"ocaml" {>= "4.14.0"}
4949
"dune" {>= "2.8"}
5050
"drom_lib" {= version}
5151
"ppx_inline_test" {with-test}

0 commit comments

Comments
 (0)