Skip to content

Commit

Permalink
chore: move opam files to opam/ directory
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

<!-- ps-id: 27b44ee7-62d0-4d08-9d44-2f861925486c -->
  • Loading branch information
rgrinberg authored and emillon committed Jun 23, 2023
1 parent 4ea5720 commit a3091d7
Show file tree
Hide file tree
Showing 21 changed files with 62 additions and 61 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
git config --global user.email github-actions[bot]@users.noreply.github.com
# Install ocamlfind-secondary and ocaml-secondary-compiler, if needed
- run: opam install ./dune.opam --deps-only --with-test
- run: opam install ./opam/dune.opam --deps-only --with-test

- name: Install system deps on macOS
run: brew install coreutils pkg-config file
Expand All @@ -101,7 +101,7 @@ jobs:
if: ${{ matrix.os != 'windows-latest' && matrix.skip_test == false }}

- name: Install deps on Win32
run: opam install ./dune-configurator.opam --deps-only --with-test
run: opam install ./opam/dune-configurator.opam --deps-only --with-test
if: ${{ matrix.os == 'windows-latest' && matrix.skip_test == false }}

- name: Run test suite on Unix
Expand All @@ -113,7 +113,7 @@ jobs:
if: ${{ matrix.os == 'windows-latest' && matrix.skip_test == false }}

- name: Build configurator
run: opam install ./dune-configurator.opam
run: opam install ./opam/dune-configurator.opam
if: ${{ matrix.configurator == true }}

dkml-current:
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
git config --global user.email github-actions[bot]@users.noreply.github.com
# Install ocamlfind-secondary and ocaml-secondary-compiler, if needed
- run: opam install ./dune.opam --deps-only --with-test
- run: opam install ./opam/dune.opam --deps-only --with-test

- name: Install deps on Unix
run: |
Expand Down
42 changes: 0 additions & 42 deletions dune-file
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,6 @@

(data_only_dirs _boot)

(rule
(copy dune-private-libs.opam.template dune-configurator.opam.template))

(rule
(copy dune-private-libs.opam.template dune-glob.opam.template))

(rule
(copy dune-private-libs.opam.template dune-action-plugin.opam.template))

(rule
(copy dune-private-libs.opam.template dune-build-info.opam.template))

(rule
(copy dune-private-libs.opam.template dune-site.opam.template))

(rule
(copy dune-private-libs.opam.template dune-rpc.opam.template))

(rule
(copy dune-private-libs.opam.template stdune.opam.template))

(rule
(copy dune-private-libs.opam.template dyn.opam.template))

(rule
(copy dune-private-libs.opam.template ordering.opam.template))

(rule
(copy dune-private-libs.opam.template dune-rpc-lwt.opam.template))

(rule
(copy dune-private-libs.opam.template fiber.opam.template))

(rule
(copy dune-private-libs.opam.template xdg.opam.template))

(rule
(copy dune-private-libs.opam.template ocamlc-loc.opam.template))

(rule
(copy dune-private-libs.opam.template chrome-trace.opam.template))

(env
(_
(flags :standard -alert -unstable)
Expand Down
4 changes: 3 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(lang dune 3.5)
(lang dune 3.8)
; ^^^
; When changing the version, don't forget to regenerate *.opam files
; by running [dune build].
Expand All @@ -10,6 +10,8 @@

(strict_package_deps false)

(opam_file_location inside_opam_directory)

; Reserved for Dune itself. This is to help with the bootstrap
(using dune-bootstrap-info 0.1)

Expand Down
2 changes: 1 addition & 1 deletion chrome-trace.opam → opam/chrome-trace.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08.0"}
"odoc" {with-doc}
]
Expand Down
41 changes: 41 additions & 0 deletions opam/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
(rule
(copy dune-private-libs.opam.template dune-configurator.opam.template))

(rule
(copy dune-private-libs.opam.template dune-glob.opam.template))

(rule
(copy dune-private-libs.opam.template dune-action-plugin.opam.template))

(rule
(copy dune-private-libs.opam.template dune-build-info.opam.template))

(rule
(copy dune-private-libs.opam.template dune-site.opam.template))

(rule
(copy dune-private-libs.opam.template dune-rpc.opam.template))

(rule
(copy dune-private-libs.opam.template stdune.opam.template))

(rule
(copy dune-private-libs.opam.template dyn.opam.template))

(rule
(copy dune-private-libs.opam.template ordering.opam.template))

(rule
(copy dune-private-libs.opam.template dune-rpc-lwt.opam.template))

(rule
(copy dune-private-libs.opam.template fiber.opam.template))

(rule
(copy dune-private-libs.opam.template xdg.opam.template))

(rule
(copy dune-private-libs.opam.template ocamlc-loc.opam.template))

(rule
(copy dune-private-libs.opam.template chrome-trace.opam.template))
2 changes: 1 addition & 1 deletion dune-action-plugin.opam → opam/dune-action-plugin.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"dune-glob" {= version}
"csexp" {>= "1.5.0"}
"ppx_expect" {with-test}
Expand Down
2 changes: 1 addition & 1 deletion dune-build-info.opam → opam/dune-build-info.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08"}
"odoc" {with-doc}
]
Expand Down
2 changes: 1 addition & 1 deletion dune-configurator.opam → opam/dune-configurator.opam
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"ocaml" {>= "4.04.0"}
"base-unix"
"csexp" {>= "1.5.0"}
Expand Down
2 changes: 1 addition & 1 deletion dune-glob.opam → opam/dune-glob.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"stdune" {= version}
"dyn"
"ordering"
Expand Down
2 changes: 1 addition & 1 deletion dune-private-libs.opam → opam/dune-private-libs.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"csexp" {>= "1.5.0"}
"pp" {>= "1.1.0"}
"dyn" {= version}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion dune-rpc-lwt.opam → opam/dune-rpc-lwt.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"dune-rpc" {= version}
"result" {>= "1.5"}
"csexp" {>= "1.5.0"}
Expand Down
2 changes: 1 addition & 1 deletion dune-rpc.opam → opam/dune-rpc.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"csexp"
"ordering"
"dyn"
Expand Down
2 changes: 1 addition & 1 deletion dune-site.opam → opam/dune-site.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"dune-private-libs" {= version}
"odoc" {with-doc}
]
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dyn.opam → opam/dyn.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08.0"}
"ordering" {= version}
"pp" {>= "1.1.0"}
Expand Down
2 changes: 1 addition & 1 deletion ocamlc-loc.opam → opam/ocamlc-loc.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08.0"}
"dyn" {= version}
"odoc" {with-doc}
Expand Down
2 changes: 1 addition & 1 deletion ordering.opam → opam/ordering.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08.0"}
"odoc" {with-doc}
]
Expand Down
2 changes: 1 addition & 1 deletion stdune.opam → opam/stdune.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08.0"}
"base-unix"
"dyn" {= version}
Expand Down
2 changes: 1 addition & 1 deletion xdg.opam → opam/xdg.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage: "https://github.com/ocaml/dune"
doc: "https://dune.readthedocs.io/"
bug-reports: "https://github.com/ocaml/dune/issues"
depends: [
"dune" {>= "3.5"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08"}
"odoc" {with-doc}
]
Expand Down

0 comments on commit a3091d7

Please sign in to comment.