Skip to content

opam init --disable-sandboxing doesn't update ~/.opam/config #3634

@Isweet

Description

@Isweet
# opam config report
# opam-version      2.0.1
# self-upgrade      no
# system            arch=x86_64 os=macos os-distribution=homebrew os-version=10.13.4
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              4
# repositories      2 (http) (default repo at 27ae4ff1)
# pinned            1 (git)
# current-switch    4.07.0

Perhaps this is the expected behavior, but perhaps not. I expected that opam init --disable-sandboxing would update ~/.opam/config to remove the lines:

wrap-build-commands:
  ["%{hooks}%/sandbox.sh" "build"] {os = "linux" | os = "macos"}
wrap-install-commands:
  ["%{hooks}%/sandbox.sh" "install"] {os = "linux" | os = "macos"}
wrap-remove-commands:
  ["%{hooks}%/sandbox.sh" "remove"] {os = "linux" | os = "macos"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions