Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deno arguments are not in the correct order #9139

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Conversation

smeubank
Copy link
Member

When testing this Deno CLI complained about the order of arguments in the script. This is how i tried it from the docs

image

me@me deno-edge-hello-world % deno run index.ts --allow-net=xxxxx.ingest.sentry.io

Permission flags have likely been incorrectly set after the script argument.
To grant permissions, set them before the script argument. For example:
    deno run --allow-read=. main.js
error: Module not found "file:///Users/steveneubank/Desktop/deno-edge-hello-world/index.ts".

Flipping the order as instructed works

When testing this Deno CLI complained about the order of arguments in the script

```me@me deno-edge-hello-world % deno run index.ts --allow-net=xxxxx.ingest.sentry.io

Permission flags have likely been incorrectly set after the script argument.
To grant permissions, set them before the script argument. For example:
    deno run --allow-read=. main.js
error: Module not found "file:///Users/steveneubank/Desktop/deno-edge-hello-world/index.ts".````
Copy link

vercel bot commented Feb 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2024 11:44am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
sentry-docs-next ⬜️ Ignored (Inspect) Visit Preview Feb 14, 2024 11:44am

Copy link
Contributor

@vivianyentran vivianyentran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this and updating the code samples!

@smeubank smeubank marked this pull request as ready for review February 15, 2024 10:11
@AbhiPrasad AbhiPrasad merged commit 60b9ac6 into master Feb 15, 2024
8 checks passed
@AbhiPrasad AbhiPrasad deleted the smeubank-deno-scripts branch February 15, 2024 15:38
@github-actions github-actions bot locked and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants