Skip to content

Commit e8e08d3

Browse files
committed
fixup! Try to use the same version of surreal command and surrealdb container in integration tests
1 parent dabddca commit e8e08d3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

destination-surrealdb/.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
"features": {
3333
"./surrealdb": {
34-
"version": "2.2.2"
34+
"version": "${localEnv:SURREALDB_VERSION:2.2.2}"
3535
}
3636
},
3737

destination-surrealdb/.devcontainer/surrealdb/install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ elif [ "$VERSION" = "beta" ]; then
3939
export BETA="true"
4040
elif [ "$VERSION" = "nightly" ]; then
4141
export NIGHTLY="true"
42+
elif [ "$VERSION" = "latest" ]; then
43+
# For latest, don't set VERSION - let the script use the default
44+
unset VERSION
45+
else
46+
# For specific versions, remove the "v" prefix if present
47+
export VERSION="${VERSION#v}"
4248
fi
4349

4450
curl -sSf https://install.surrealdb.com | sh

0 commit comments

Comments
 (0)