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

Trying to run a library should fail fast #2735

Open
snprajwal opened this issue Dec 18, 2023 · 0 comments
Open

Trying to run a library should fail fast #2735

snprajwal opened this issue Dec 18, 2023 · 0 comments

Comments

@snprajwal
Copy link

When we try to run a library with dub run, the project is first built, and then errors out saying it is a library.

} else
enforce(false, "Target is a library. Skipping execution.");
}

Would it be better for this to happen right off the bat when the command is executed, and not waste time building the project?

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