cool-easter-32542
10/23/2023, 4:16 PMunzip are not located in /bin or any of the other regular paths.
In NixOS we make binaries available through $PATH which points to a read-only store.
There have been several pointers given on slack:
• "It would like this: #14360"
• "this would actually be pretty straight-forward to do:"
• "Define a Subsystem subclass with the option to use to specify the search path. Example in
pants/src/python/pants/backend/go/subsystems/golang.py
Lines 65 to 75 in </pantsbuild/pants/commit/e475d56d5ea149ffeb9fb0d4e316df6aeafd11ec|e475d56>
."
• "Update find_unzip and related functions to take the new Subsystem as an argument."
• "Use the function defined on the Subsystemto be similar to go_search_paths in place of the SEARCH_PATHS constant."
There have been some questions raised on slack:
• "would you rather have a dedicated option per binary? (unzip, zip, tar). It's probably less boilerplate to have a single option for all 3 binaries, but I'm curious as a Nix user if you would want tighter control?"
pantsbuild/pantscool-easter-32542
10/23/2023, 4:16 PM