dfinity / dfinity/sdk

dfx new _project_name_ --dry-run not generating any preview.

Open
#4,404 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage
Dominant language
Rust
Stars
204
Forks
98
PR merge metrics
No merged PRs in 30d

Description

I tried the following:

dfx new my-project --dry-run

It is supposed to "generate a preview of the directories and files to be created for a new project without adding them to the file system".

Instead, this happened:
It goes thru the usual questions :

  • Select a backend language
  • Select a frontend framework
  • Add extra features
Result
WARN: Running in dry mode. Nothing will be committed to disk.
Created new project "my-project"

dfx --version:

0.29.2
Result with -verbose flag

WARN: Running in dry mode. Nothing will be committed to disk.
Gathering project templates
Writing base files
Writing files for project template: dfx_js_base
Writing files for project template: motoko
Writing files for project template: sveltekit
Created new project "my-project"

Not that I need this feature—I just thought I would let you know.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running dfx new my-project --dry-run and trace the dfx new command's dry-run behavior, using the verbose output to follow template gathering and file-writing steps. Done means the command previews the directories and files that would be created while leaving the file system unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.