Comments (5)
I am not familiar with MacOS. The first case should be fixed in the latest release. The other two errors are strange to me, as it concerns this line: [[ $input_type =~ ^(|nix|json|shell)$ ]] || die "Unsupported input type '${input_type}'."
As both values ''
or 'nix'
should and do match that regex on Linux.
Is MacOS using a different bash than Linux that does not support these regexes?
from nix-prefetch.
Still relevant to me
from nix-prefetch.
Is MacOS using a different bash than Linux that does not support these regexes?
@msteen the regex ^(|nix|json|shell)$
is not posix compliant, | can't follow ( or another | or precede ) so it's not possible to match empty string https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_04_03:
A <vertical-line> appearing first or last in an ERE, or immediately following a <vertical-line> or a <left-parenthesis>, or immediately preceding a <right-parenthesis>, produces undefined results.
from nix-prefetch.
I'm hitting this on the 0.4.0 release as well - it feels weird that the main.sh
script uses a bash from the nix store (/nix/store/30njb8l701pwnm5ya749fh2cgyc2d70m-bash-4.4-p23/bin/bash
) on linux as well as on macOS - and only on macOS, it fails.
Anyway, I guess fixing those regexes might be the way forward for this issue.
from nix-prefetch.
With #24, I can use nix-prefetch
on macOS again; would appreciate if other people could test!
from nix-prefetch.
Related Issues (20)
- Cannot fetch cargoDeps according to README HOT 1
- "A probably-wrong output hash of zeroes has been used, yet it somehow still succeeded in building" HOT 1
- wrong project
- error: attribute 'overrideAttrs' missing (fetchCrate) HOT 2
- Path is invalid
- Difference in behavior between macOS and Linux HOT 2
- The fetchurl prefetcher fails with the default `TMPDIR` variable on macOS
- Do not depend on NIX_PATH HOT 1
- Out-of-tree release tag 0.4.1
- Add flake support HOT 3
- `--verbose` and `--compute-hash` options conflicts
- fetchhg + let's encrypt -> Certificate_verify_failed
- Merge into Nixpkgs or become a Nix Community project HOT 3
- Breaks when using `--fetchLFS` with `fetchgit`
- Fake hashes collide with each other and block concurrent fetching
- nix-prefetch fails on nur-packages. error: Could not find Nixpkgs path: /tmp/nur-packages/pkgs/top-level
- Output nix expression with the fetcher name
- `nix-prefetch` is broken without passing `extra-experimental-features` options on every invocation HOT 2
- also prefetch patches
- Error: error: value is null while a set was expected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-prefetch.