Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[23.05] Backport simple package paths: part 1b #253442

Merged
merged 4 commits into from
Sep 21, 2023

Conversation

infinisil
Copy link
Member

@infinisil infinisil commented Sep 5, 2023

Description of changes

This is the backport of #237439, as written in RFC 140.

Notably we only need to backport the first commit of that PR, since it introduces the machinery and documentation for the new pkgs/by-name directory. The other two commits aren't strictly necessary:

  • The updates to the quick-start documentation would have to change the stable NixOS manual, which shouldn't be done, relates to Clean up contributing documentation #245243.
  • The move of hello to pkgs/by-name isn't necessary

Let's only merge this in a couple days once we're sure that #237439 works without problems.

Things done

This introduces the `pkgs/by-name` directory as proposed by RFC 140.
Included are:
- The implementation to add packages defined in that directory to the
  top-level package scope
- Contributer documentation on how to add packages to it
- A GitHub Actions workflow to check the structure of it on all PRs

(cherry picked from commit f6467c3)
@infinisil
Copy link
Member Author

infinisil commented Sep 11, 2023

Some small issues have been discovered, let's wait for these to be resolved, I'll include them here, and then wait a bit longer to see if something else comes up:

@Ericson2314 Ericson2314 marked this pull request as draft September 11, 2023 18:53
@infinisil infinisil added this to the RFC 140 milestone Sep 11, 2023
infinisil and others added 3 commits September 15, 2023 00:21
Co-Authored-By: zowoq <[email protected]>
(cherry picked from commit 437d00d)
On Darwin, /tmp is sometimes a symlink to /private/tmp, which couldn't
be handled before:

    error: access to canonical path '/private/var/folders/xp/9_ry6h9x6l9gh_g32qspz0_40000gp/T/.tmpFbcNO0' is forbidden in restricted mode

This both fixes that and adds a test to make sure it can't happen again

(cherry picked from commit d518eb9)
We seem to have enough tests to run into this now:

    error: creating symlink from '/private/tmp/nix-build-nixpkgs-check-by-name.drv-0/source/test-tmp/var/nix/gcroots/profiles' to '/private/tmp/nix-build-nixpkgs-check-by-name.drv-0/source/test-tmp/var/nix/profiles': File exists

(cherry picked from commit 9c9a7e0)
@infinisil infinisil marked this pull request as ready for review September 14, 2023 22:23
@infinisil
Copy link
Member Author

I now included the above two fixes, nothing else has come up since, I think this is good to be backported now.

@ofborg build tests.nixpkgs-check-by-name

@infinisil infinisil merged commit 31ed632 into NixOS:release-23.05 Sep 21, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants