Skip to content

"cabal sandbox add-source" only effective after "cabal install" was invoked #1443

Closed
@hvr

Description

@hvr

The following sequence doesn't work as expected (with 323460e)

git clone https://github.com/jgm/pandoc
git clone https://github.com/jgm/pandoc-types

cd pandoc/
cabal sandbox init
cabal sandbox add-source ../pandoc-types

cabal install --only-dep # fails because pandoc-types-1.12 is not found
cabal info pandoc-types-1.12 # fails as well
# `cabal sandbox list-sources`  would indeed list "pandoc-types"

The following ordering of commands works however:

git clone https://github.com/jgm/pandoc
git clone https://github.com/jgm/pandoc-types

cd pandoc/
cabal sandbox init
cabal install --only-dep # fails as expected, as pandoc-types-1.12 is not released yet
cabal sandbox add-source ../pandoc-types
cabal install --only-dep # now, pandoc-types-1.12 is found

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions