Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Remove "default.nix" trick #249

Merged
merged 1 commit into from
Dec 2, 2019
Merged

Conversation

curiousleo
Copy link
Collaborator

This is now handled correctly:

lorri/src/builder.rs

Lines 160 to 170 in 9418645

// We need to emulate nix’s `default.nix` mechanism here.
// That is, if the user uses something like
// `import ./foo`
// and `foo` is a directory, nix will actually import
// `./foo/default.nix`
// but still print `./foo`.
// Since this is the only time directories are printed,
// we can just manually re-implement that behavior.
if src.is_dir() {
src.push("default.nix");
}

@Profpatsch Profpatsch merged commit 25b9a1b into target:master Dec 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants