| 7 May 2023 |
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 |