From 1583ca116669e89435199427571683c619b36d66 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Fri, 25 Sep 2026 12:49:46 +0000 Subject: [PATCH] ops: stop committing the nixpacks build plan `railway up` writes .nixpacks/ into the working tree: a Dockerfile, a nixpkgs pin, and a build.sh that hard-codes the absolute path of the worktree it ran in plus a one-off image tag. None of it is reusable and no workflow reads it, so every branch that deploys regenerates it and conflicts with the last one -- which is exactly how this branch ended up CONFLICTING against master. Drop it and ignore it. --- .gitignore | 5 +++ .nixpacks/Dockerfile | 36 ------------------- .nixpacks/build.sh | 1 - ...eebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix | 21 ----------- 4 files changed, 5 insertions(+), 58 deletions(-) delete mode 100644 .nixpacks/Dockerfile delete mode 100644 .nixpacks/build.sh delete mode 100644 .nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix diff --git a/.gitignore b/.gitignore index 3a51433..32458e4 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,8 @@ test-results .commandboard .logicsrc supabase/.temp + +# Nixpacks build plan generated by `railway up`. It bakes absolute paths to the +# worktree it was generated in and a one-off image tag, so it is never reusable +# and every regeneration conflicts with the last one. +.nixpacks/ diff --git a/.nixpacks/Dockerfile b/.nixpacks/Dockerfile deleted file mode 100644 index 177a72c..0000000 --- a/.nixpacks/Dockerfile +++ /dev/null @@ -1,36 +0,0 @@ -FROM ghcr.io/railwayapp/nixpacks:ubuntu-1745885067 - -ENTRYPOINT ["/bin/bash", "-l", "-c"] -WORKDIR /app/ -ARG PUBLIC_ORIGIN -ENV PUBLIC_ORIGIN=$PUBLIC_ORIGIN - - -COPY .nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix .nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix -RUN nix-env -if .nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix && nix-collect-garbage -d - - -ARG CI NIXPACKS_METADATA NIXPACKS_NODE_VERSION NODE_ENV NPM_CONFIG_PRODUCTION -ENV CI=$CI NIXPACKS_METADATA=$NIXPACKS_METADATA NIXPACKS_NODE_VERSION=$NIXPACKS_NODE_VERSION NODE_ENV=$NODE_ENV NPM_CONFIG_PRODUCTION=$NPM_CONFIG_PRODUCTION - -# setup phase -# noop - -# install phase -ENV NIXPACKS_PATH=/app/node_modules/.bin:$NIXPACKS_PATH -COPY . /app/. -RUN --mount=type=cache,id=LhbkHYjAGz0-/root/npm,target=/root/.npm npm ci - -# build phase -COPY . /app/. -RUN --mount=type=cache,id=LhbkHYjAGz0-apps/logicsrc-web/next/cache,target=/app/apps/logicsrc-web/.next/cache --mount=type=cache,id=LhbkHYjAGz0-node_modules/cache,target=/app/node_modules/.cache npm run build - - -RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile - - -# start -COPY . /app - -CMD ["npm run start"] - diff --git a/.nixpacks/build.sh b/.nixpacks/build.sh deleted file mode 100644 index 5b73b32..0000000 --- a/.nixpacks/build.sh +++ /dev/null @@ -1 +0,0 @@ -docker build /home/anthony/src/profullstack/logicsrc/.claude/worktrees/dev2-app.logicsrc.com-7qddif6s -f /home/anthony/src/profullstack/logicsrc/.claude/worktrees/dev2-app.logicsrc.com-7qddif6s/.nixpacks/Dockerfile -t 95f6a1db-fdd1-4530-b9d6-e188e6578627 --build-arg CI=true --build-arg NIXPACKS_METADATA=node --build-arg NIXPACKS_NODE_VERSION=22 --build-arg NODE_ENV=production --build-arg NPM_CONFIG_PRODUCTION=false \ No newline at end of file diff --git a/.nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix b/.nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix deleted file mode 100644 index 21d2210..0000000 --- a/.nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ }: - -let pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.tar.gz") { overlays = [ (import (builtins.fetchTarball "https://github.com/railwayapp/nix-npm-overlay/archive/main.tar.gz")) ]; }; -in with pkgs; - let - APPEND_LIBRARY_PATH = "${lib.makeLibraryPath [ gcc-unwrapped ] }"; - myLibraries = writeText "libraries" '' - export LD_LIBRARY_PATH="${APPEND_LIBRARY_PATH}:$LD_LIBRARY_PATH" - - ''; - in - buildEnv { - name = "ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7-env"; - paths = [ - (runCommand "ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7-env" { } '' - mkdir -p $out/etc/profile.d - cp ${myLibraries} $out/etc/profile.d/ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7-env.sh - '') - nodejs_22 npm-9_x - ]; - }