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

Incompatible regexes on MacOS #20

Closed
mhasbini opened this issue Apr 29, 2020 · 1 comment
Closed

Incompatible regexes on MacOS #20

mhasbini opened this issue Apr 29, 2020 · 1 comment

Comments

@mhasbini
Copy link

Getting:

while evaluating 'dropWildcardPrecision' at /nix/store/5yi7mqsj2m1h7jc760w0b17zs2dch21h-source/semver.nix:26:41, called from /nix/store/5yi7mqsj2m1h7jc760w0b17zs2dch21h-source/semver.nix:40:18:
while evaluating 'mkComparison' at /nix/store/5yi7mqsj2m1h7jc760w0b17zs2dch21h-source/semver.nix:13:34, called from /nix/store/5yi7mqsj2m1h7jc760w0b17zs2dch21h-source/semver.nix:33:5:
invalid regular expression '(.*?)([0-9]\.[0-9]\.[0-9]|[0-9]\.[0-9]|[0-9])?([.x*]*)', at /nix/store/5yi7mqsj2m1h7jc760w0b17zs2dch21h-source/semver.nix:28:23

That's the referenced line:

wildcardMatch = match "(.*?)([0-9]\\.[0-9]\\.[0-9]|[0-9]\\.[0-9]|[0-9])?([.x*]*)" constraint;

It can be reproduced on my machine:

$ nix-instantiate --eval -E 'builtins.match "(.*?)([0-9]\\.[0-9]\\.[0-9]|[0-9]\\.[0-9]|[0-9])" "1.2.3"'
error: invalid regular expression '(.*?)([0-9]\.[0-9]\.[0-9]|[0-9]\.[0-9]|[0-9])', at (string):1:1
$ uname -a
Darwin ... 17.7.0 Darwin Kernel Version 17.7.0: Thu Dec 20 21:47:19 PST 2018; root:xnu-4570.71.22~1/RELEASE_X86_64 x86_64

Probably related to NixOS/nix#1537

@mhasbini
Copy link
Author

I was using an old version, this was resolved.

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

1 participant