| 8 Dec 2022 |
Artturin | Adding it here may work | 07:15:08 |
Artturin | Try with outpaths.nix | 07:16:00 |
Artturin | https://github.com/NixOS/ofborg/blob/6daa9f8f941b13eeb6bd9424f7a29b0d540b55a3/ofborg/src/nixenv.rs#L102 | 07:22:12 |
Artturin | nix-env -qa --out-path --no-name -f outpaths.nix --arg checkMeta false --verbose--option extra-experimental-features 'no-url-literals'
| 07:36:46 |
Artturin | evaluating file '/home/artturin/nixpkgs/.worktree/1/pkgs/games/tennix/default.nix'
error: URL literals are disabled
at /home/artturin/nixpkgs/.worktree/1/pkgs/games/tennix/default.nix:8:11:
7| src = fetchgit {
8| url = git://repo.or.cz/tennix.git;
| ^
9| rev = "refs/tags/tennix-${version}";
| 07:36:50 |
Artturin | https://github.com/NixOS/ofborg/pull/628 | 07:53:19 |
Artturin | cargo test is failing though | 07:53:27 |
Artturin | error: unrecognised flag '--option experimental-features 'no-url-literals''
Try 'nix-build --help' for more information.
| 07:53:50 |
Artturin | no idea why | 07:55:46 |
Artturin | i already checked by adding --version to Operation::Build and it was 2.11 | 07:56:15 |
Vladimír Čunát | Bad quoting. | 07:56:58 |
Vladimír Čunát | At least that's what the error message looks like. | 07:57:06 |
Vladimír Čunát | On command level, three arguments should be added. --option experimental-features no-url-literals | 07:59:15 |
Artturin | thanks that was it | 08:00:53 |
Artturin | now tests pass | 08:01:44 |
Vladimír Čunát | By any chance, you're not getting this?
warning: unknown experimental feature ''no-url-literals''
| 08:03:44 |
Artturin | in cargo test? | 08:04:23 |
Vladimír Čunát | I'm not sure, but I think the apostrophes are extraneous, but maybe some layer in OfBorg would remove them. | 08:05:19 |
Vladimír Čunát | * I think the apostrophes are extraneous, but I'm not sure - maybe some layer in OfBorg would remove them. | 08:05:31 |
Vladimír Čunát | The error above is what I get by simply running the command in a way that shell doesn't remove the apostrophes. | 08:07:18 |
Artturin | they're single quotes btw | 08:07:37 |
Artturin | ah wait | 08:07:52 |
Artturin | same thing? | 08:07:53 |
Vladimír Čunát | Well yes, I meant ' | 08:08:06 |
Artturin | in a another one of my projects i did https://github.com/nix-community/comma/blob/48b723b201e94958a29a35e4f64bb4391fe73464/src/main.rs#L43 | 08:08:19 |
Artturin | run_cmd.args([
"--extra-experimental-features",
"nix-command flakes",
"shell",
]);
| 08:08:27 |
Artturin | so looks like they're not neccesary | 08:08:32 |
Vladimír Čunát | Wikipedia calls it "apostrophe". | 08:08:33 |
Artturin | They're single quotes in the programming case because we're not using them for omissions or possessives https://en.wikipedia.org/wiki/Quotation_mark 😆 | 08:25:46 |
Artturin | ¯\_(ツ)_/¯ though | 08:27:54 |