| 7 May 2023 |
raitobezarius | gotcha | 21:16:05 |
figsoda | and you don't have to run it all the time if you don't need the debug env vars | 21:16:32 |
figsoda | as long as the generated files are not garbage collected | 21:16:41 |
raitobezarius | where should sourceRoot goes? | 21:17:07 |
raitobezarius | nurl feature or prompt in nix-init? | 21:17:15 |
raitobezarius | I think a nurl feature is better | 21:17:23 |
figsoda | how would a nurl feature work exactly? | 21:17:32 |
raitobezarius | $url?sourceRoot=$sourceRoot | 21:17:41 |
raitobezarius | that breaks query args though I guess | 21:17:51 |
figsoda | I don't think we are fetching the them with source root | 21:18:04 |
raitobezarius | yeah but if I modify nurl to do it | 21:18:12 |
raitobezarius | and generate a proper fetch with sourceRoot in it | 21:18:19 |
raitobezarius | wouldn't that be better? | 21:18:21 |
raitobezarius | you would do nix-init -u $url?sourceRoot=$subdir and proceed as always | 21:18:32 |
figsoda | I'm thinking we run this for subdirectories, maybe with a configurable max depth | 21:18:56 |
figsoda | and we just have to "cd" into sourceRoot here: https://github.com/nix-community/nix-init/blob/9042eccd1d09f285ff3ff9468bf4faa3f4c0fbe7/src/main.rs#L375 | 21:19:28 |
figsoda | * and we just have to "cd" into sourceRoot here afterwards: https://github.com/nix-community/nix-init/blob/9042eccd1d09f285ff3ff9468bf4faa3f4c0fbe7/src/main.rs#L375 | 21:19:43 |
figsoda | the nurl stuff goes in src =, sourceRoot is part of mkDerivation | 21:20:15 |
raitobezarius | Good point | 21:21:25 |
raitobezarius | In reply to @figsoda:matrix.org I'm thinking we run this for subdirectories, maybe with a configurable max depth What would that be for though? | 21:21:57 |
raitobezarius | You probably want to run inside the source root directly? | 21:22:05 |
figsoda | In reply to @raitobezarius:matrix.org What would that be for though? we would find subdirectories that contain those files, ask the user to choose a sourceRoot if any was found, then mutate src_dir to the chosen subdirectory | 21:23:43 |
figsoda | In reply to @raitobezarius:matrix.org What would that be for though? * we would find subdirectories that contain those files, ask the user to choose a sourceRoot if any was found, then mutate/shadow src_dir to the chosen subdirectory | 21:23:59 |
figsoda | main.rs is a bit unorganized right now, I will try to make a refactor in the future | 21:25:11 |
figsoda | * main.rs is a bit unorganized right now, I will try to make a refactor in the (probably not near) future | 21:25:23 |
raitobezarius | hacking something | 21:46:27 |
raitobezarius | hm figsoda filename completers cannot take a restriction for the folders to autocomplete right? | 21:50:33 |
raitobezarius | do I need a helper hmm? | 21:50:43 |
raitobezarius | ah yes doesn't seem like there's "here's a list of strings helper" | 21:51:32 |
figsoda | In reply to @raitobezarius:matrix.org hm figsoda filename completers cannot take a restriction for the folders to autocomplete right? yes I think need a new enum variant | 21:51:41 |