forked from ocaml/opam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.test
222 lines (213 loc) · 8.36 KB
/
config.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
N0REP0
### :I: Resolve variable before syspolling :
### OPAMVAR_os=another opam config report | grep another | '.*os=another.*' -> 'found!'
found!
### opam var os=yetanother --global | grep another | '.*os=another.*' -> 'found!'
Added '[os "yetanother" "Set through 'opam var'"]' to field global-variables in global configuration
### opam config report | grep another | '.*os=yetanother.*' -> 'found!'
found!
### OPAMVAR_os=another opam config report | grep another | '.*os=another.*' -> 'found!'
found!
### :II: general config report :
### opam option jobs=1 --global
Set to '1' the field jobs in global configuration
### opam var arch=an-arch --global
Added '[arch "an-arch" "Set through 'opam var'"]' to field global-variables in global configuration
### opam var os=an-os --global
Added '[os "an-os" "Set through 'opam var'"]' to field global-variables in global configuration
### opam var os-distribution=an-os-distribution --global
Added '[os-distribution "an-os-distribution" "Set through 'opam var'"]' to field global-variables in global configuration
### opam var os-version=an-os-version --global
Added '[os-version "an-os-version" "Set through 'opam var'"]' to field global-variables in global configuration
### opam option solver=builtin-mccs+glpk --global
Set to 'builtin-mccs+glpk' the field solver in global configuration
### opam option 'solver-criteria="-removed"' --global
Set to '"-removed"' the field solver-criteria in global configuration
### opam option 'solver-fixup-criteria="-removed"' --global
Set to '"-removed"' the field solver-fixup-criteria in global configuration
### opam option 'solver-upgrade-criteria="-removed"' --global
Set to '"-removed"' the field solver-upgrade-criteria in global configuration
### opam --version >$ OPAMVERSION
### # no switch
### opam config report | "${OPAMVERSION}" -> "current"
# opam config report
# opam-version current
# self-upgrade no
# system arch=an-arch os=an-os os-distribution=an-os-distribution os-version=an-os-version
# solver builtin-mccs+glpk
# install-criteria -removed
# upgrade-criteria -removed
# jobs 1
# all-repositories 1 (local)
# current-switch none set
### # empty switch
### opam switch create an-empty-switch --empty
### opam config report | "${OPAMVERSION}" -> "current"
# opam config report
# opam-version current
# self-upgrade no
# system arch=an-arch os=an-os os-distribution=an-os-distribution os-version=an-os-version
# solver builtin-mccs+glpk
# install-criteria -removed
# upgrade-criteria -removed
# jobs 1
# all-repositories 1 (local)
# repositories 1 (local)
# pinned 0
# current-switch an-empty-switch
# invariant []
# compiler-packages none
### # full configuration
### <pkg:meta-compiler.1>
opam-version: "2.0"
depends: "compiler"
### <pkg:meta-compiler.1:meta-compiler.config>
opam-version: "2.0"
variables { compvar: "something" }
### <pkg:compiler.1>
opam-version: "2.0"
depends: [
"dep-compiler"
"meta-compiler" {post}
"post-dep-compiler" {post}
]
depopts: [ "depopt-compiler" ]
flags: compiler
### <pkg:dep-compiler.1>
opam-version: "2.0"
### <pkg:post-dep-compiler.1>
opam-version: "2.0"
### <pkg:depopt-compiler.1>
opam-version: "2.0"
### <pkg:a-package.1>
opam-version: "2.0"
depends: "meta-compiler"
### <pin:pinned-package/pinned-package.opam>
opam-version: "2.0"
depends: "meta-compiler"
### opam switch create a-switch meta-compiler.1
<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Switch invariant: ["meta-compiler" {= "1"}]
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed dep-compiler.1
-> installed compiler.1
-> installed meta-compiler.1
-> installed post-dep-compiler.1
Done.
### <REPO2/repo>
opam-version: "2.0"
### mkdir REPO2/packages
### opam repository add second ./REPO2 --this-switch
[second] Initialised
### opam pin pinned-package -y
Package pinned-package does not exist, create as a NEW package? [y/n] y
pinned-package is now pinned to file://${BASEDIR}/pinned-package (version dev)
The following actions will be performed:
=== install 1 package
- install pinned-package dev (pinned)
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved pinned-package.dev (file://${BASEDIR}/pinned-package)
-> installed pinned-package.dev
Done.
### opam config report | "${OPAMVERSION}" -> "current"
# opam config report
# opam-version current
# self-upgrade no
# system arch=an-arch os=an-os os-distribution=an-os-distribution os-version=an-os-version
# solver builtin-mccs+glpk
# install-criteria -removed
# upgrade-criteria -removed
# jobs 1
# all-repositories 2 (local)
# repositories 2 (local)
# pinned 1 (rsync)
# current-switch a-switch
# invariant meta-compiler = 1
# compiler-packages compiler.1, dep-compiler.1
# meta-compiler:compvar something
### opam repository remove second --all
### # empty invariant with compiler installed
### opam switch create an-empty-invariant-with-compiler --empty
### opam install meta-compiler -y
The following actions will be performed:
=== install 4 packages
- install compiler 1 [required by meta-compiler]
- install dep-compiler 1 [required by compiler]
- install meta-compiler 1
- install post-dep-compiler 1
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed dep-compiler.1
-> installed compiler.1
-> installed meta-compiler.1
-> installed post-dep-compiler.1
Done.
### opam config report | "${OPAMVERSION}" -> "current"
# opam config report
# opam-version current
# self-upgrade no
# system arch=an-arch os=an-os os-distribution=an-os-distribution os-version=an-os-version
# solver builtin-mccs+glpk
# install-criteria -removed
# upgrade-criteria -removed
# jobs 1
# all-repositories 1 (local)
# repositories 1 (local)
# pinned 0
# current-switch an-empty-invariant-with-compiler
# invariant []
# compiler-packages compiler.1, dep-compiler.1
# meta-compiler:compvar something
### # invariant not a "compiler"
### opam switch create a-package-invariant a-package
<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Switch invariant: ["a-package"]
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed dep-compiler.1
-> installed compiler.1
-> installed meta-compiler.1
-> installed a-package.1
-> installed post-dep-compiler.1
Done.
### opam config report | "${OPAMVERSION}" -> "current"
# opam config report
# opam-version current
# self-upgrade no
# system arch=an-arch os=an-os os-distribution=an-os-distribution os-version=an-os-version
# solver builtin-mccs+glpk
# install-criteria -removed
# upgrade-criteria -removed
# jobs 1
# all-repositories 1 (local)
# repositories 1 (local)
# pinned 0
# current-switch a-package-invariant
# invariant a-package
# compiler-packages compiler.1, dep-compiler.1
# meta-compiler:compvar something
### # compiler with depopt
### opam switch create a-compiler-with-depopt --packages meta-compiler,depopt-compiler
<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Switch invariant: ["meta-compiler" "depopt-compiler"]
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed dep-compiler.1
-> installed depopt-compiler.1
-> installed compiler.1
-> installed meta-compiler.1
-> installed post-dep-compiler.1
Done.
### opam config report | "${OPAMVERSION}" -> "current"
# opam config report
# opam-version current
# self-upgrade no
# system arch=an-arch os=an-os os-distribution=an-os-distribution os-version=an-os-version
# solver builtin-mccs+glpk
# install-criteria -removed
# upgrade-criteria -removed
# jobs 1
# all-repositories 1 (local)
# repositories 1 (local)
# pinned 0
# current-switch a-compiler-with-depopt
# invariant meta-compiler & depopt-compiler
# compiler-packages compiler.1, dep-compiler.1, depopt-compiler.1
# meta-compiler:compvar something