| 27 Oct 2021 |
Hrafn Blรณรฐbรณk | What is the URI syntax for gitlab subgroups/subprojects? Example: I want to try out a flake with this convoluted path: https://gitlab.com/veloren/dev/veloren/-/tree/yusdacra/chore/nix | 06:48:48 |
balsoft | I think git+https is the best you can do :/ | 08:12:01 |
colemickens ๐ณ๏ธโ๐ | Las: I'm not sure I understood your issue. In the example I gave ${out} was some arbitrary store path (which happened to be a nixos toplevel) | 19:33:46 |
Las | In reply to @colemickens:matrix.org Las: I'm not sure I understood your issue. In the example I gave ${out} was some arbitrary store path (which happened to be a nixos toplevel) Yes, you're right. | 19:34:16 |
Las | I thought that that didn't work, since there is nothing to build. | 19:34:37 |
Las | it's not intuitively clear from the name. | 19:34:44 |
Enzime | In reply to @sudoreboot:matrix.org What is the URI syntax for gitlab subgroups/subprojects? Example: I want to try out a flake with this convoluted path: https://gitlab.com/veloren/dev/veloren/-/tree/yusdacra/chore/nix as far as I understand, that's just the name of the branch so when you specify the flake input you just need to specify ref = "yusdacra/chore/nix"; | 23:48:15 |
balsoft | In reply to @enzime:nixos.dev as far as I understand, that's just the name of the branch so when you specify the flake input you just need to specify ref = "yusdacra/chore/nix"; I think the problem is veloren/dev/veloren | 23:57:22 |
| 28 Oct 2021 |
Enzime | inputs.veloren.url = "git+https://gitlab.com/veloren/dev/veloren.git?ref=yusdacra/chore/nix"; works for me :) | 00:10:13 |
balsoft | Well yeah | 00:12:51 |
balsoft | But that will be not very efficient | 00:12:59 |
balsoft | gitlab:foo/bar is better | 00:13:04 |
Enzime | In reply to @balsoft:balsoft.ru But that will be not very efficient oh why's that? | 00:14:11 |
balsoft | gitlab: just fetches a pre-made tarball | 00:14:53 |
balsoft | And the git fetcher is meh | 00:15:03 |
balsoft | There are some details in either this room or the #nix-dev:nixos.org | 00:15:21 |
balsoft | I don't remember exactly, sorry :D | 00:15:27 |
Enzime | $ nix flake check "gitlab:veloren/dev/veloren?ref=yusdacra/chore/nix"
error: URL 'gitlab:veloren/dev/veloren?ref=yusdacra/chore/nix' contains multiple branch/tag names
| 00:30:38 |
Enzime | yeah definitely looks like gitlab: and github: are built with the fundamental assumption that gitlab:A/B B can't contain slashes | 00:31:13 |
bew | yeah that's because the flake ref syntax is git{hub,lab}:org/repo/branch?options | 00:57:42 |
tomberek | gitlab allows for sub-organizations, i'm not dealing with any right now, but this assumption may not work in those cases...... can we just tweak the parsing or spec of the flake ref syntax? | 00:59:30 |
bew | In reply to @balsoft:balsoft.ru I think git+https is the best you can do :/ as he said, that's the only way to use a repository at an arbitrary url | 01:00:52 |
bew | In reply to @balsoft:balsoft.ru I think git+https is the best you can do :/ * as he said, that's the only way I know to use a repository at an arbitrary url | 01:01:12 |
colemickens ๐ณ๏ธโ๐ | Can you url-encode the slash in the repo name? | 01:06:31 |
colemickens ๐ณ๏ธโ๐ | I guess urlencoding it might just pass it through the url that way which might not work either, idk. | 01:06:52 |
Enzime | In reply to @colemickens:matrix.org Can you url-encode the slash in the repo name? $ nix flake check "gitlab:veloren/dev%2Fveloren?ref=yusdacra/chore/nix"
[99.1/0.0 MiB DL] downloading 'https://gitlab.com/api/v4/projects/veloren%2Fdev%2Fveloren/repository/archive.tar.gz?sha=dd059588771b7e261e9596f1e4eb121acf5e91a3'
| 01:09:33 |
Enzime | seems to be working | 01:09:35 |
Enzime | ๐ | 01:09:41 |
colemickens ๐ณ๏ธโ๐ | pretty sure I just remember that from some random matrix/discourse post, glad it worked! | 01:14:42 |
colemickens ๐ณ๏ธโ๐ | yay for capriciously designed urls that were designed primarily with a single platform in mind! | 01:15:14 |