nix-community / nixago

Generate configuration files using Nix [maintainer=@jmgilman]
https://nix-community.github.io/nixago
MIT License
128 stars 7 forks source link

Create relative paths before linking #33

Closed jmgilman closed 2 years ago

jmgilman commented 2 years ago

If output is a relative path that does not exist (i.e. .github/settings.yml), the shell hook will fail to link:

install: cannot create regular file '.github/settings.yml': No such file or directory

Add a check to the hook to see if the path exists and, if not, attempt to create it before linking.