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

Wrong error message when doing dub init on an already existing package #2740

Open
Geod24 opened this issue Dec 19, 2023 · 0 comments
Open

Wrong error message when doing dub init on an already existing package #2740

Geod24 opened this issue Dec 19, 2023 · 0 comments

Comments

@Geod24
Copy link
Member

Geod24 commented Dec 19, 2023

 % rm -rf *
zsh: sure you want to delete all 4 files in /home/mlang/projects/dlang/dub/f [yn]? y

% dub init foobar
Package recipe format (sdl/json) [json]: Name [foobar]: Description [A minimal D application.]: Author name [mlang]: License [proprietary]: Copyright string [Copyright © 2023, mlang]: Add dependency (leave empty to skip) []:      Success created empty project in /home/mlang/projects/dlang/dub/f/foobar
             Package successfully created in foobar

% dub init foobar
Error dub.json: No such file or directory

The error message doesn't make sense: The problem is that foobar already exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant