Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{foo,bar} bad package location #383

Open
philderbeast opened this issue Apr 24, 2020 · 2 comments
Open

{foo,bar} bad package location #383

philderbeast opened this issue Apr 24, 2020 · 2 comments

Comments

@philderbeast
Copy link
Contributor

philderbeast commented Apr 24, 2020

If I use the {foo,bar} syntax for package locations then haskell-ci chokes. If I instead specify the same packages but listed individually haskell-ci is fine with that.

> ~/.cabal/bin/haskell-ci --output=.travis.yml --config=cabal.haskell-ci cabal.project
*ERROR* Bad package location: "../{foo,bar}/"

This syntax is described in the cabal docs.

Can we please say in the readme that the brace syntax is not supported?

Are we reusing the exact same globbing code that cabal-install uses, haskell/cabal#6732?

@phadej
Copy link
Collaborator

phadej commented Apr 24, 2020

Use ../{foo,bar}/*.cabal

haskell-ci / cabal-install-parsers does cut corners, globs have to match .cabal files. (If I remember right they cannot be local tarballs either, as those aren't supported).

@philderbeast
Copy link
Contributor Author

I can confirm that the trailing /*.cabal is needed.

-- cabal.project
packages:
    lang-haskell/{clip,cmd,comp,detour-via-sci,detour-via-uom,earth,flare-timing,fsdb,gap,igc,kml,latlng,lookup,mask,route,scribe,siggy-chardust,span,task,tasty-compare,time,track,units,zone}/

~/.cabal/bin/haskell-ci --output=.travis.yml --config=cabal.haskell-ci cabal.project
*ERROR* Bad package location: "lang-haskell/{clip,cmd,comp,detour-via-sci,detour-via-uom,earth,flare-timing,fsdb,gap,igc,kml,latlng,lookup,mask,route,scribe,siggy-chardust,span,task,tasty-compare,time,track,units,zone}/"
-- cabal.project
packages:
    lang-haskell/{clip,cmd,comp,detour-via-sci,detour-via-uom,earth,flare-timing,fsdb,gap,igc,kml,latlng,lookup,mask,route,scribe,siggy-chardust,span,task,tasty-compare,time,track,units,zone}/*.cabal

> ~/.cabal/bin/haskell-ci --output=.travis.yml --config=cabal.haskell-ci cabal.project
*INFO* Generating Travis-CI config for testing for GHC versions: 8.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants