!CXcIPzDZqFYqqXTaXa:matrix.org

nix-init

72 Members
https://github.com/nix-community/nix-init24 Servers

Load older messages


SenderMessageTime
5 May 2023
@kranzes:matrix.org@kranzes:matrix.org figsoda It writes an empty file even if you Ctrl+C 18:41:25
@kranzes:matrix.org@kranzes:matrix.orgCan you make this atomic so it only writes the file if nix-init exits with code 0?18:42:10
@kranzes:matrix.org@kranzes:matrix.orgDoes that sound like a good behavior?18:42:20
@figsoda:matrix.orgfigsoda
In reply to @kranzes:matrix.org
figsoda It writes an empty file even if you Ctrl+C
It does, I wanted to open the file early on so it doesn't run into permission issues after you've answered all the questions
18:42:56
@figsoda:matrix.orgfigsodaI'm not sure how that would be possible without creating the file, maybe it should just check for permissions and not open the file until it is ready to write?18:43:31
@kranzes:matrix.org@kranzes:matrix.orgI accidentally create empty files many time because in my head I first enter the URL instead of path18:43:35
@kranzes:matrix.org@kranzes:matrix.orgI do this by accident all the time18:44:26
@kranzes:matrix.org@kranzes:matrix.org
Enter output path (defaults to current directory)
❯ https://github.com/nix-community/nix-init
Enter url
❯

Error: Interrupted
[kranzes@pongo ~/test]$ ls
https:
[kranzes@pongo ~/test]$ tree
.
└── https:
    └── github.com
        └── nix-community
            └── nix-init

3 directories, 1 file
[kranzes@pongo ~/test]
18:44:30
@figsoda:matrix.orgfigsodaoh yeah that's maybe not the best hehavior18:44:57
@kranzes:matrix.org@kranzes:matrix.orgI mean ideally, I should stop making this stupid mistake18:54:31
@kranzes:matrix.org@kranzes:matrix.orgbut I still do it idk lol18:54:39
@kranzes:matrix.org@kranzes:matrix.orgI find it to make more sense to have URL as the first question18:55:00
@kranzes:matrix.org@kranzes:matrix.orgthen all the others18:55:03
@kranzes:matrix.org@kranzes:matrix.organd output path at the end18:55:08
@kranzes:matrix.org@kranzes:matrix.orgso the last question18:55:10
@kranzes:matrix.org@kranzes:matrix.orgThat logically sits best with me18:55:29
@figsoda:matrix.orgfigsodafeel free to drop a comment here: https://github.com/nix-community/nix-init/issues/7219:04:46
@figsoda:matrix.orgfigsodaI'm looking for suggestions like this, and also stuff like configuration19:05:29
@kranzes:matrix.org@kranzes:matrix.org
In reply to @figsoda:matrix.org
feel free to drop a comment here: https://github.com/nix-community/nix-init/issues/72
Ok i commented
19:15:38
@kranzes:matrix.org@kranzes:matrix.orgAnother feature I had in mind I just commented19:21:40
@archive:matrix.org@archive:matrix.org joined the room.23:48:07
7 May 2023
@raitobezarius:matrix.orgraitobezariusI have a usecase for nix-init: https://github.com/bram2w/baserow/commit/2bbb22be2fd39a2877930bb7957be31ef246252a#diff-930c90821797b3eed215c57ad83e0ffb363d8d473275dfee36fa88498aed558d21:10:58
@raitobezarius:matrix.orgraitobezarius how far are we from being able to autopackage all of those figsoda ? 21:11:05
@raitobezarius:matrix.orgraitobezarius I know we need sourceRoot input probably as this is a monorepo 21:11:13
@raitobezarius:matrix.orgraitobezariusexcept if we use fetchPypi21:11:17
@figsoda:matrix.orgfigsoda
In reply to @raitobezarius:matrix.org
how far are we from being able to autopackage all of those figsoda ?
probably just sourceRoot
21:12:15
@raitobezarius:matrix.orgraitobezariuswould you be open to such a PR?21:12:22
@figsoda:matrix.orgfigsodapython support is pretty good21:12:24
@figsoda:matrix.orgfigsoda
In reply to @raitobezarius:matrix.org
would you be open to such a PR?
yes
21:12:34
@figsoda:matrix.orgfigsodathough the packages probably still needs manual work because of how python dependencies work in nixpkgs21:13:13

Show newer messages


Back to Room ListRoom Version: 10