Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit07d1606

Browse files
committed
fix(flake.nix): fix coder binary build
Change-Id: I2adc511dd7b4de4e221e74234ec1eae743589cafSigned-off-by: Thomas Kosiewski <tk@coder.com>
1 parent8c0a262 commit07d1606

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎flake.nix

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
kubectl
8686
kubectx
8787
kubernetes-helm
88+
lazygit
8889
less
8990
mockgen
9091
moreutils
@@ -144,7 +145,7 @@
144145
name="coder-${osArch}";
145146
# Updated with ./scripts/update-flake.sh`.
146147
# This should be updated whenever go.mod changes!
147-
vendorHash="sha256-Tsajkkp+NMjYRCpRX5HlSy/sCSpuABIGDM1jeavVe+w=";
148+
vendorHash="sha256-ykLZqtALSvDpBc2yEjRGdOyCFNsnLZiGid0d4s27e8Q=";
148149
proxyVendor=true;
149150
src=./.;
150151
nativeBuildInputs=withpkgs;[getoptopensslzstd];
@@ -156,12 +157,15 @@
156157
runHook preBuild
157158
158159
# Unpack the site contents.
159-
mkdir -p ./site/out
160+
mkdir -p ./site/out ./site/node_modules/
160161
cp -r${buildSite.out}/* ./site/out
162+
touch ./site/node_modules/.installed
161163
162164
# Build and copy the binary!
163165
export CODER_FORCE_VERSION=${version}
164-
make -j build/coder_${osArch}
166+
# Flagging 'site/node_modules/.installed' as an old file,
167+
# as we do not want to trigger codegen during a build.
168+
make -j -o 'site/node_modules/.installed' build/coder_${osArch}
165169
'';
166170
installPhase=''
167171
mkdir -p $out/bin

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp