Skip to content

Commit

Permalink
fix: deprecation warning for not using fine-grained unstable flags
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrie158 committed Apr 2, 2024
1 parent 6839023 commit 3bde9fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"runtimeExecutable": "deno",
"runtimeArgs": [
"run",
"--unstable",
"--unstable-http",
"--unstable-kv",
"--inspect-wait",
"--allow-all"
],
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ RUN deno cache main.ts

ENTRYPOINT []
CMD deno run \
# unstable flag is needed for Deno.connect to a Unix Socket (lib/universal-http.ts)
--unstable \
# flag is needed for Deno.connect to a Unix Socket (lib/universal-http.ts)
--unstable-http \
# flag is needed for unstable KV storage
--unstable-kv \
# /var/run/dolce/ => lockfile directory
--allow-read="./templates,/var/run/dolce/,${DOCKER_HOST},${DOLCE_CUSTOM_TEMPLATE_PATH}" \
# /var/run/dolce/ => lockfile directory
Expand Down
4 changes: 4 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"unstable": [
"http",
"kv"
],
"tasks": {
"dev": "DOLCE_LOG_LEVEL=DEBUG deno run --unstable-http --allow-read=/var/run/docker.sock,./templates,/var/run/dolce/ --allow-write=/var/run/docker.sock,/var/run/dolce/ --allow-env --allow-run --watch main.ts",
"bmp": "deno run --allow-read=. --allow-write=. --allow-run=git https://deno.land/x/[email protected]/cli.ts",
Expand Down

0 comments on commit 3bde9fa

Please sign in to comment.