Skip to content

Commit 64766bd

Browse files
committed
Merge remote-tracking branch 'origin/master' into acls
2 parents 6293167 + 188c803 commit 64766bd

File tree

1,156 files changed

+25461
-11272
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,156 files changed

+25461
-11272
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ indent_style = space
1717
indent_size = 2
1818

1919
# Match c++/shell/perl, set indent to spaces with width of four
20-
[*.{hpp,cc,hh,sh,pl}]
20+
[*.{hpp,cc,hh,sh,pl,xs}]
2121
indent_style = space
2222
indent_size = 4
2323

.github/CODEOWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,12 @@
1414
/doc @fricklerhandwerk
1515
*.md @fricklerhandwerk
1616

17+
# Documentation of built-in functions
18+
src/libexpr/primops.cc @fricklerhandwerk @roberth
19+
# Documentation on experimental features
20+
src/libutil/experimental-features.cc @fricklerhandwerk
21+
# Documentation on configuration settings
22+
src/libstore/globals.hh @fricklerhandwerk
23+
1724
# Libstore layer
1825
/src/libstore @thufschmitt

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,6 @@
1010

1111
<!-- Large change: Provide instructions to reviewers how to read the diff. -->
1212

13-
# Checklist for maintainers
14-
15-
<!-- Contributors: please leave this as is -->
16-
17-
Maintainers: tick if completed or explain if not relevant
18-
19-
- [ ] agreed on idea
20-
- [ ] agreed on implementation strategy
21-
- [ ] tests, as appropriate
22-
- functional tests - `tests/**.sh`
23-
- unit tests - `src/*/tests`
24-
- integration tests - `tests/nixos/*`
25-
- [ ] documentation in the manual
26-
- [ ] documentation in the internal API docs
27-
- [ ] code and comments are self-explanatory
28-
- [ ] commit message explains why the change was made
29-
- [ ] new feature or incompatible change: updated release notes
30-
3113
# Priorities
3214

3315
Add :+1: to [pull requests you find important](https://github.com/NixOS/nix/pulls?q=is%3Aopen+sort%3Areactions-%2B1-desc).

.github/labeler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"new-cli":
1717
- src/nix/**/*
1818

19-
"tests":
19+
"with-tests":
2020
# Unit tests
2121
- src/*/tests/**/*
2222
# Functional and integration tests
23-
- tests/**/*
23+
- tests/functional/**/*

.github/workflows/backport.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true && (github.event_name != 'labeled' || startsWith('backport', github.event.label.name))
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
with:
1919
ref: ${{ github.event.pull_request.head.sha }}
2020
# required to find all branches
2121
fetch-depth: 0
2222
- name: Create backport PRs
2323
# should be kept in sync with `version`
24-
uses: zeebe-io/backport-action@v1.3.1
24+
uses: zeebe-io/backport-action@v2.1.1
2525
with:
2626
# Config README: https://github.com/zeebe-io/backport-action#backport-action
2727
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yml

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
runs-on: ${{ matrix.os }}
1818
timeout-minutes: 60
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
23-
- uses: cachix/install-nix-action@v22
23+
- uses: cachix/install-nix-action@v23
2424
with:
2525
# The sandbox would otherwise be disabled by default on Darwin
2626
extra_nix_config: "sandbox = true"
@@ -58,11 +58,11 @@ jobs:
5858
outputs:
5959
installerURL: ${{ steps.prepare-installer.outputs.installerURL }}
6060
steps:
61-
- uses: actions/checkout@v3
61+
- uses: actions/checkout@v4
6262
with:
6363
fetch-depth: 0
6464
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV
65-
- uses: cachix/install-nix-action@v22
65+
- uses: cachix/install-nix-action@v23
6666
with:
6767
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
6868
- uses: cachix/cachix-action@v12
@@ -82,9 +82,9 @@ jobs:
8282
os: [ubuntu-latest, macos-latest]
8383
runs-on: ${{ matrix.os }}
8484
steps:
85-
- uses: actions/checkout@v3
85+
- uses: actions/checkout@v4
8686
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV
87-
- uses: cachix/install-nix-action@v22
87+
- uses: cachix/install-nix-action@v23
8888
with:
8989
install_url: '${{needs.installer.outputs.installerURL}}'
9090
install_options: "--tarball-url-prefix https://${{ env.CACHIX_NAME }}.cachix.org/serve"
@@ -101,17 +101,20 @@ jobs:
101101

102102
docker_push_image:
103103
needs: [check_secrets, tests]
104+
permissions:
105+
contents: read
106+
packages: write
104107
if: >-
105108
github.event_name == 'push' &&
106109
github.ref_name == 'master' &&
107110
needs.check_secrets.outputs.cachix == 'true' &&
108111
needs.check_secrets.outputs.docker == 'true'
109112
runs-on: ubuntu-latest
110113
steps:
111-
- uses: actions/checkout@v3
114+
- uses: actions/checkout@v4
112115
with:
113116
fetch-depth: 0
114-
- uses: cachix/install-nix-action@v22
117+
- uses: cachix/install-nix-action@v23
115118
with:
116119
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
117120
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV
@@ -126,10 +129,30 @@ jobs:
126129
- run: docker load -i ./result/image.tar.gz
127130
- run: docker tag nix:$NIX_VERSION nixos/nix:$NIX_VERSION
128131
- run: docker tag nix:$NIX_VERSION nixos/nix:master
132+
# We'll deploy the newly built image to both Docker Hub and Github Container Registry.
133+
#
134+
# Push to Docker Hub first
129135
- name: Login to Docker Hub
130-
uses: docker/login-action@v2
136+
uses: docker/login-action@v3
131137
with:
132138
username: ${{ secrets.DOCKERHUB_USERNAME }}
133139
password: ${{ secrets.DOCKERHUB_TOKEN }}
134140
- run: docker push nixos/nix:$NIX_VERSION
135141
- run: docker push nixos/nix:master
142+
# Push to GitHub Container Registry as well
143+
- name: Login to GitHub Container Registry
144+
uses: docker/login-action@v3
145+
with:
146+
registry: ghcr.io
147+
username: ${{ github.actor }}
148+
password: ${{ secrets.GITHUB_TOKEN }}
149+
- name: Push image
150+
run: |
151+
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/nix
152+
# Change all uppercase to lowercase
153+
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
154+
155+
docker tag nix:$NIX_VERSION $IMAGE_ID:$NIX_VERSION
156+
docker tag nix:$NIX_VERSION $IMAGE_ID:master
157+
docker push $IMAGE_ID:$NIX_VERSION
158+
docker push $IMAGE_ID:master

.github/workflows/hydra_status.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
if: github.repository_owner == 'NixOS'
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
1919
- run: bash scripts/check-hydra-status.sh

.github/workflows/labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
- uses: actions/labeler@v4
2222
with:
2323
repo-token: ${{ secrets.GITHUB_TOKEN }}
24-
sync-labels: true
24+
sync-labels: false

.gitignore

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ perl/Makefile.config
2121
/doc/manual/language.json
2222
/doc/manual/xp-features.json
2323
/doc/manual/src/SUMMARY.md
24+
/doc/manual/src/SUMMARY-rl-next.md
25+
/doc/manual/src/store/types/*
26+
!/doc/manual/src/store/types/index.md.in
2427
/doc/manual/src/command-ref/new-cli
2528
/doc/manual/src/command-ref/conf-file.md
2629
/doc/manual/src/command-ref/experimental-features-shortlist.md
2730
/doc/manual/src/contributing/experimental-feature-descriptions.md
2831
/doc/manual/src/language/builtins.md
2932
/doc/manual/src/language/builtin-constants.md
33+
/doc/manual/src/release-notes/rl-next.md
3034

3135
# /scripts/
3236
/scripts/nix-profile.sh
@@ -52,7 +56,7 @@ perl/Makefile.config
5256

5357
/src/nix/nix
5458

55-
/src/nix/doc
59+
/src/nix/generated-doc
5660

5761
# /src/nix-env/
5862
/src/nix-env/nix-env
@@ -79,23 +83,24 @@ perl/Makefile.config
7983

8084
/src/build-remote/build-remote
8185

82-
# /tests/
83-
/tests/test-tmp
84-
/tests/common/vars-and-functions.sh
85-
/tests/result*
86-
/tests/restricted-innocent
87-
/tests/shell
88-
/tests/shell.drv
89-
/tests/config.nix
90-
/tests/ca/config.nix
91-
/tests/dyn-drv/config.nix
92-
/tests/repl-result-out
93-
/tests/test-libstoreconsumer/test-libstoreconsumer
94-
95-
# /tests/lang/
96-
/tests/lang/*.out
97-
/tests/lang/*.out.xml
98-
/tests/lang/*.ast
86+
# /tests/functional/
87+
/tests/functional/test-tmp
88+
/tests/functional/common/vars-and-functions.sh
89+
/tests/functional/result*
90+
/tests/functional/restricted-innocent
91+
/tests/functional/shell
92+
/tests/functional/shell.drv
93+
/tests/functional/config.nix
94+
/tests/functional/ca/config.nix
95+
/tests/functional/dyn-drv/config.nix
96+
/tests/functional/repl-result-out
97+
/tests/functional/test-libstoreconsumer/test-libstoreconsumer
98+
99+
# /tests/functional/lang/
100+
/tests/functional/lang/*.out
101+
/tests/functional/lang/*.out.xml
102+
/tests/functional/lang/*.err
103+
/tests/functional/lang/*.ast
99104

100105
/perl/lib/Nix/Config.pm
101106
/perl/lib/Nix/Store.cc
@@ -137,4 +142,12 @@ nix-rust/target
137142

138143
result
139144

145+
# IDE
140146
.vscode/
147+
.idea/
148+
149+
# clangd and possibly more
150+
.cache/
151+
152+
# Mac OS
153+
.DS_Store

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.17.0
1+
2.20.0

0 commit comments

Comments
 (0)