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

Incorrect error message about globbing #2030

Closed
bos opened this issue Aug 5, 2014 · 2 comments
Closed

Incorrect error message about globbing #2030

bos opened this issue Aug 5, 2014 · 2 comments

Comments

@bos
Copy link
Contributor

bos commented Aug 5, 2014

In the criterion package, I tried to have a data-files section like this:

data-files:
  templates/js/jquery-*.min.js

When I try to run cabal, I get this error:

cabal: invalid file glob 'templates/js/jquery-*.min.js'. Wildcards '*' are
only allowed in place of the file name, not in the directory name or file
extension. If a wildcard is used it must be with an file extension.

The actual name of the file I'm trying to include is as follows:

templates/js/jquery-1.6.4.min.js

It looks like cabal is misidentifying where the "*" is showing up in the pattern here.

@mietek
Copy link
Contributor

mietek commented Nov 26, 2014

Perhaps it would be nice to get #1975 merged.

@ttuegel ttuegel added this to the Cabal-1.24 milestone Apr 24, 2015
@23Skidoo 23Skidoo modified the milestones: Cabal 1.24, Cabal 1.26 Feb 21, 2016
@ezyang ezyang modified the milestone: Cabal 2.0 Sep 6, 2016
quasicomputational added a commit to quasicomputational/cabal that referenced this issue Apr 25, 2018
These are inspired by a plan described in a comment in haskell#2522, and only
implement a quite limited form of recursive matching: only a single **
wildcard is accepted, it must be the final directory, and, if a **
wildcard is present, the file name must include a wildcard.

Or-patterns are not implemented, for simplicity.

Closes haskell#3178, haskell#2030.
quasicomputational added a commit to quasicomputational/cabal that referenced this issue Apr 25, 2018
These are inspired by a plan described in a comment in haskell#2522, and only
implement a quite limited form of recursive matching: only a single **
wildcard is accepted, it must be the final directory, and, if a **
wildcard is present, the file name must include a wildcard.

Or-patterns are not implemented, for simplicity.

Closes haskell#3178, haskell#2030.
quasicomputational added a commit to quasicomputational/cabal that referenced this issue Apr 28, 2018
These are inspired by a plan described in a comment in haskell#2522, and only
implement a quite limited form of recursive matching: only a single **
wildcard is accepted, it must be the final directory, and, if a **
wildcard is present, the file name must include a wildcard.

Or-patterns are not implemented, for simplicity.

Closes haskell#3178, haskell#2030.
quasicomputational added a commit to quasicomputational/cabal that referenced this issue Apr 29, 2018
These are inspired by a plan described in a comment in haskell#2522, and only
implement a quite limited form of recursive matching: only a single **
wildcard is accepted, it must be the final directory, and, if a **
wildcard is present, the file name must include a wildcard.

Or-patterns are not implemented, for simplicity.

Closes haskell#3178, haskell#2030.
quasicomputational added a commit to quasicomputational/cabal that referenced this issue May 6, 2018
These are inspired by a plan described in a comment in haskell#2522, and only
implement a quite limited form of recursive matching: only a single **
wildcard is accepted, it must be the final directory, and, if a **
wildcard is present, the file name must include a wildcard.

Or-patterns are not implemented, for simplicity.

Closes haskell#3178, haskell#2030.
23Skidoo pushed a commit that referenced this issue May 8, 2018
These are inspired by a plan described in a comment in #2522, and only
implement a quite limited form of recursive matching: only a single **
wildcard is accepted, it must be the final directory, and, if a **
wildcard is present, the file name must include a wildcard.

Or-patterns are not implemented, for simplicity.

Closes #3178, #2030.
@quasicomputational
Copy link
Contributor

The error message has been improved.

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

No branches or pull requests

6 participants