Skip to content

Commit bd628f2

Browse files
authored
Merge branch 'cachix:main' into main
2 parents 6b42f9c + b1ca338 commit bd628f2

File tree

171 files changed

+14689
-2941
lines changed

Some content is hidden

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

171 files changed

+14689
-2941
lines changed

.cargo/config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
[alias]
22
xtask = "run --package xtask --"
33

4+
[build]
5+
# Allow using tracing's experimental support for Valuable
6+
rustflags = ["--cfg", "tracing_unstable"]
7+
48
[env]
59
SNIX_BUILD_SANDBOX_SHELL = "/path/to/sandbox/shell"

.github/workflows/containers.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
uses: docker/login-action@v3
4646
with:
4747
registry: ${{ env.REGISTRY }}
48-
username: ${{ github.actor }}
48+
username: ${{ github.repository_owner }}
4949
password: ${{ secrets.GITHUB_TOKEN }}
5050

5151
- name: Extract metadata (tags, labels) for Docker
@@ -112,7 +112,7 @@ jobs:
112112
113113
- name: Log in to the Container registry
114114
run: |
115-
echo "${{ secrets.GITHUB_TOKEN }}" | nix run nixpkgs#skopeo -- login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
115+
echo "${{ secrets.GITHUB_TOKEN }}" | nix run nixpkgs#skopeo -- login ${{ env.REGISTRY }} -u ${{ github.repository_owner }} --password-stdin
116116
117117
- name: Push image by digest
118118
id: push
@@ -121,15 +121,15 @@ jobs:
121121
IMAGE_NAME="${{ env.REGISTRY }}/${{ env.REPOSITORY }}/devenv"
122122
123123
# Get the digest from the tarball
124-
DIGEST=$(nix run nixpkgs#skopeo -- inspect "tarball:${IMAGE_PATH}" --format '{{.Digest}}')
124+
DIGEST=$(nix run nixpkgs#skopeo -- inspect "docker-archive:${IMAGE_PATH}" --format '{{.Digest}}')
125125
echo "Image digest: $DIGEST"
126126
127127
# Save digest for manifest creation
128128
mkdir -p /tmp/digests
129129
echo "$DIGEST" > "/tmp/digests/${{ matrix.arch }}.digest"
130130
131131
# Push directly to digest reference without creating any tags
132-
nix run nixpkgs#skopeo -- copy --preserve-digests "tarball:${IMAGE_PATH}" "docker://${IMAGE_NAME}@${DIGEST}"
132+
nix run nixpkgs#skopeo -- copy --preserve-digests "docker-archive:${IMAGE_PATH}" "docker://${IMAGE_NAME}@${DIGEST}"
133133
134134
echo "Pushed image to ${IMAGE_NAME}@${DIGEST}"
135135
echo "digest=$DIGEST" >> $GITHUB_OUTPUT
@@ -158,7 +158,7 @@ jobs:
158158
uses: docker/login-action@v3
159159
with:
160160
registry: ${{ env.REGISTRY }}
161-
username: ${{ github.actor }}
161+
username: ${{ github.repository_owner }}
162162
password: ${{ secrets.GITHUB_TOKEN }}
163163

164164
- name: Set up Docker Buildx

.github/workflows/pr-test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@ on:
88
- "requirements.in"
99
- "requirements.txt"
1010

11+
workflow_dispatch:
12+
inputs:
13+
ref:
14+
description: 'Git ref (tag or branch) to test'
15+
required: true
16+
default: 'main'
17+
type: string
18+
1119
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
20+
group: "${{ github.workflow }}-${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || github.ref }}"
1321
cancel-in-progress: true
1422

1523
jobs:
@@ -34,3 +42,4 @@ jobs:
3442
with:
3543
system: ${{ matrix.system }}
3644
runs-on: ${{ matrix.runs-on }}
45+
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || '' }}

.github/workflows/test.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ jobs:
5656
path=$(nix build -L --print-out-paths)
5757
echo "$path/bin" >> $GITHUB_PATH
5858
59-
- name: Test tasks outside shell
60-
run: devenv tasks run devenv:enterShell
61-
6259
- name: Build override args
6360
id: override-args
6461
env:
@@ -70,8 +67,8 @@ jobs:
7067
fi
7168
echo "args=$override_args" >> $GITHUB_OUTPUT
7269
73-
- name: Run devenv-test-cli
74-
run: devenv ${{ steps.override-args.outputs.args }} shell devenv-test-cli
70+
- name: Run devenv test
71+
run: devenv ${{ steps.override-args.outputs.args }} test
7572

7673
- name: Run tests
7774
run: devenv-run-tests run tests ${{ steps.override-args.outputs.args }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ target/
2525
node_modules/
2626

2727
**/.claude/settings.local.json
28+
.claude

0 commit comments

Comments
 (0)