@opam//here:create

Create here switch.

To copy an existing shared switch, use @opam//here:clone.

Initial Conditions Action Remarks

.opam exists

cancel create action

Run @opam//here:expunge to start from scratch.

option -c <version> passed

create using compiler <version>

e.g. bazel run @opam//here:init
-- -c 4.14.0+options

.obazl.d/opam/here.compiler exists

create using compiler version listed in here.compiler

no .obazl.d/opam/here.compiler

create using 'current' switch by default

user will be prompted for confirmation

.obazl.d/opam/here.packages exists

import here.packages after switch is created

no .obazl.d/opam/here.packages

import packages listed in deps line of [opam] stanza of .obazlrc, if it exists