Skip to content

Commit

Permalink
WSL: store first install bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
htngr committed Oct 22, 2024
1 parent 817005b commit 21228bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ jobs:
id: winver
with:
string: '${{ github.ref_name }}'
pattern: '^v(\d+).(\d+).(\d+)-?.*$'
replace-with: '$1.$2.$3.0'
pattern: '^v(\d+).(\d+).(\d+)(?:\.(\d+))?$'
replace-with: '$1.$2.$3.${4:-0}'
- name: Insert version ${{ github.ref_name }} / ${{ steps.winver.outputs.replaced }}
env:
VERSION: ${{ github.ref_name }}
Expand Down
14 changes: 10 additions & 4 deletions nix/container/store/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,16 @@ in
# NIX_DAEMON_PID=$!
# export NIX_REMOTE="daemon"
if [ ! -f "${consts.store.DIR_CONFIG_STORE}/flake.nix" ]; then
logE "Stores' flake.nix missing!"
exit 1
fi
for i in $(seq 1 10); do
if [ -f "${consts.store.DIR_CONFIG_STORE}/flake.nix" ]; then
break
elif [ $i -ge 10 ]; then
logE "Stores' flake.nix missing!"
exit 1
fi
logE "Stores' flake.nix still missing, waiting a bit..."
sleep 0.25
done
if ! command -v git &> /dev/null; then
mkdir -p "${consts.store.DIR_CONFIG_STORE}"
Expand Down

0 comments on commit 21228bf

Please sign in to comment.