Skip to content

Commit e490ed9

Browse files
build: take packages from nix.systemfsoftware.com and drop .sfs-deps (SYS-1296) (#5)
* build: take packages from nix.systemfsoftware.com and drop .sfs-deps (SYS-1296) Producer packages come from nix.systemfsoftware.com, the package registry for @systemfsoftware packages, through flake inputs (pnpm-release-management lib.mkProducerTarballs and lib.mkPnpmConsumerStore). The .sfs-deps machinery is deleted. * ci: call core's workflows at b146694, which lay .deps from nix.systemfsoftware.com (SYS-1296) --------- Co-authored-by: systemfsoftware-maker <248545757+systemfsoftware-maker@users.noreply.github.com>
1 parent 758bf9f commit e490ed9

13 files changed

Lines changed: 683 additions & 442 deletions

File tree

‎.github/actions/checks-lane/action.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
using: composite
1717
steps:
1818
- if: inputs.lane == 'plan' || inputs.lane == 'timings'
19-
uses: systemfsoftware/systemfsoftware/.github/actions/sfs-tools@21dfc32e9927c87a31a37d19e5643445a4e398c3
19+
uses: systemfsoftware/systemfsoftware/.github/actions/sfs-tools@b146694efe1139948c03bd9e9e366c725252c0d1
2020
with:
2121
repository: systemfsoftware/systemfsoftware
2222
ref: 21dfc32e9927c87a31a37d19e5643445a4e398c3
@@ -28,7 +28,7 @@ runs:
2828
if: inputs.lane == 'affected'
2929
shell: bash -e {0}
3030
run: printf 'CI=true\nCONFORMANCE_PROFILE=local\nTURBO_LOG_ORDER=stream\n' >> "$GITHUB_ENV"
31-
- uses: systemfsoftware/systemfsoftware/.github/actions/install-deps@21dfc32e9927c87a31a37d19e5643445a4e398c3
31+
- uses: systemfsoftware/systemfsoftware/.github/actions/install-deps@b146694efe1139948c03bd9e9e366c725252c0d1
3232
if: inputs.lane == 'affected'
3333
- name: Turbo cache
3434
if: inputs.lane == 'affected'
@@ -70,7 +70,7 @@ runs:
7070
if: inputs.lane == 'static'
7171
shell: bash -e {0}
7272
run: printf 'CI=true\nOXLINT_FORMAT=github\nTSGO_FORMAT=github-actions\nTURBO_LOG_ORDER=stream\n' >> "$GITHUB_ENV"
73-
- uses: systemfsoftware/systemfsoftware/.github/actions/install-deps@21dfc32e9927c87a31a37d19e5643445a4e398c3
73+
- uses: systemfsoftware/systemfsoftware/.github/actions/install-deps@b146694efe1139948c03bd9e9e366c725252c0d1
7474
if: inputs.lane == 'static'
7575
- uses: cachix/install-nix-action@v31
7676
if: inputs.lane == 'static' || inputs.lane == 'docs'
@@ -96,7 +96,7 @@ runs:
9696
if: inputs.lane == 'test' && inputs.profile == 'local'
9797
shell: bash -e {0}
9898
run: printf 'CONFORMANCE_PROFILE=local\n' >> "$GITHUB_ENV"
99-
- uses: systemfsoftware/systemfsoftware/.github/actions/install-deps@21dfc32e9927c87a31a37d19e5643445a4e398c3
99+
- uses: systemfsoftware/systemfsoftware/.github/actions/install-deps@b146694efe1139948c03bd9e9e366c725252c0d1
100100
if: inputs.lane == 'test'
101101
- name: Turbo cache
102102
if: inputs.lane == 'test'

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions:
2222
jobs:
2323
conflicts:
2424
name: no merge conflicts
25-
uses: systemfsoftware/systemfsoftware/.github/workflows/conflict-check.yml@21dfc32e9927c87a31a37d19e5643445a4e398c3
25+
uses: systemfsoftware/systemfsoftware/.github/workflows/conflict-check.yml@b146694efe1139948c03bd9e9e366c725252c0d1
2626
with:
2727
base_ref: ${{ github.event.pull_request.base.ref }}
2828
head_sha: ${{ github.event.pull_request.head.sha }}
@@ -32,7 +32,7 @@ jobs:
3232
permissions:
3333
contents: read
3434
actions: read
35-
uses: systemfsoftware/systemfsoftware/.github/workflows/reusable-checks.yml@21dfc32e9927c87a31a37d19e5643445a4e398c3
35+
uses: systemfsoftware/systemfsoftware/.github/workflows/reusable-checks.yml@b146694efe1139948c03bd9e9e366c725252c0d1
3636
with:
3737
profile: ${{ github.ref == 'refs/heads/main' && 'per-change' || 'local' }}
3838
record: test-timings-${{ github.ref == 'refs/heads/main' && 'per-change' || 'local' }}

‎.github/workflows/commitlint.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ permissions:
1010
jobs:
1111
commitlint:
1212
name: commitlint
13-
uses: systemfsoftware/systemfsoftware/.github/workflows/reusable-commitlint.yml@21dfc32e9927c87a31a37d19e5643445a4e398c3
13+
uses: systemfsoftware/systemfsoftware/.github/workflows/reusable-commitlint.yml@b146694efe1139948c03bd9e9e366c725252c0d1

‎.github/workflows/nix.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ concurrency:
1616
jobs:
1717
nix:
1818
name: nix
19-
uses: systemfsoftware/systemfsoftware/.github/workflows/reusable-nix.yml@21dfc32e9927c87a31a37d19e5643445a4e398c3
19+
uses: systemfsoftware/systemfsoftware/.github/workflows/reusable-nix.yml@b146694efe1139948c03bd9e9e366c725252c0d1
2020
with:
2121
systems: '[{"system": "x86_64-linux", "runner": "ubuntu-latest"}]'

‎.gitignore‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ temp/
1616
/deno.lock
1717
.timings/
1818
.sfs-tools/
19-
# Core tarballs, built by `nix build .#sfs-deps` (CI: the sfs-deps job); never committed
20-
.sfs-deps/
19+
# Producer tarballs, copied into place by the dev shell from nix.systemfsoftware.com; never committed
20+
.deps/

‎AGENTS.md‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ Extracted from `systemfsoftware/systemfsoftware` (core); package history came wi
1212

1313
## Dependencies on core
1414

15-
Core packages are not installed from a registry. `flake.nix` pins core at a full commit (input `core`) and
16-
`nix build .#sfs-deps` links the core tarballs this lockfile names. `pnpm-workspace.yaml` maps every core package
17-
(and its transitive core closure) to `file:.sfs-deps/<name>-<version>.tgz` through `overrides`; the moved manifests
18-
name ordinary semver ranges. To take newer core packages: bump the `core` input, update the override versions,
19-
rebuild `.sfs-deps`, run `pnpm install`.
15+
https://nix.systemfsoftware.com is the package registry for `@systemfsoftware` packages: a producer pushes its package tarballs there from `main`, a consumer substitutes them through its flake inputs, and nothing is published to npm.
16+
17+
`flake.nix` pins core at a full commit (input `core`), and `pnpm-release-management.lib.mkProducerTarballs` lays core's pushed tarballs into `.deps/`. `pnpm-workspace.yaml` maps every core package to `file:.deps/<name>.tgz` through `overrides`; the moved manifests name ordinary semver ranges. To take newer core packages: bump the `core` input, run `nix flake update core`, then `pnpm update '@systemfsoftware/*'`.
2018

2119
Local setup:
2220

2321
```bash
24-
mkdir -p .sfs-deps && cp -L --no-preserve=mode "$(nix build --no-link --print-out-paths .#sfs-deps)"/*.tgz .sfs-deps/
22+
nix develop # the shell hook copies core's tarballs into .deps/
2523
pnpm install
2624
```
2725

‎CONTRIBUTING.md‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## Requirements
44

55
- Nix with flakes
6-
- GNU coreutils: the setup command uses `cp -L --no-preserve=mode`
76
- Node.js 24
87
- pnpm (the version pinned in `package.json`'s `packageManager`)
98

@@ -12,24 +11,23 @@ shell that has nix the wrapper scripts resolve what they need themselves.
1211

1312
## Dependencies on core
1413

15-
Core packages are not installed from a registry. `flake.nix` pins core at a full commit (input `core`), and
16-
`nix build .#sfs-deps` links the core tarballs this lockfile names. `pnpm-workspace.yaml` maps every core package
17-
(and its transitive core closure) to `file:.sfs-deps/<name>-<version>.tgz` through `overrides`.
14+
https://nix.systemfsoftware.com is the package registry for `@systemfsoftware` packages: a producer pushes its package tarballs there from `main`, a consumer substitutes them through its flake inputs, and nothing is published to npm.
15+
16+
`flake.nix` pins core at a full commit (input `core`), and `pnpm-release-management.lib.mkProducerTarballs` lays core's pushed tarballs into `.deps/` when the dev shell starts. `pnpm-workspace.yaml` maps every core package to `file:.deps/<name>.tgz` through `overrides`.
1817

1918
To take newer core packages:
2019

21-
1. Bump the `core` input.
22-
2. Rebuild `.sfs-deps` (the tarballs' names carry their versions, so this is what tells you the
23-
new versions).
24-
3. Point `pnpm-workspace.yaml`'s overrides at those new `<name>-<version>.tgz` names.
25-
4. Run `pnpm install`.
20+
1. Bump the `core` input, then run `nix flake update core`.
21+
2. Run `nix eval --raw .#producer-tarballs.overrides` and update `pnpm-workspace.yaml`'s `overrides` if core added or dropped a package.
22+
3. Enter `nix develop` so `.deps/` holds the new tarballs.
23+
4. Run `pnpm update '@systemfsoftware/*'` to record the new versions and integrities.
2624

2725
Other external dependencies come from the configured npm registry.
2826

2927
## Setup and workflow
3028

3129
```bash
32-
mkdir -p .sfs-deps && cp -L --no-preserve=mode "$(nix build --no-link --print-out-paths .#sfs-deps)"/*.tgz .sfs-deps/
30+
nix develop # the shell hook copies core tarballs into .deps/; then run the rest inside it
3331
pnpm install
3432
pnpm format
3533
pnpm check:local

‎README.md‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ Bridges RxJS and Effect: turn an Observable into a typed Effect Stream with back
88

99
## Install
1010

11-
```bash
12-
pnpm add @systemfsoftware/rx-effect
13-
```
14-
15-
The npm registry lags this repository's sources: `@systemfsoftware/rx-effect` is 1.0.0 on npm and 1.0.3 here. Each package's README describes its current source.
11+
https://nix.systemfsoftware.com is the package registry for `@systemfsoftware` packages: a producer pushes its package tarballs there from `main`, a consumer substitutes them through its flake inputs, and nothing is published to npm.
1612

1713
## Usage
1814

‎dprint.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
".turbo",
1818
"pnpm-lock.yaml",
1919
"**/etc/*.api.md",
20-
".sfs-deps/**",
20+
".deps/**",
2121
"**/snapshots/*.md"
2222
],
2323
"plugins": [

0 commit comments

Comments
 (0)