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

DUB error out on missing directory before preGenerateCommands #2142

Open
Geod24 opened this issue Jun 7, 2021 · 0 comments
Open

DUB error out on missing directory before preGenerateCommands #2142

Geod24 opened this issue Jun 7, 2021 · 0 comments
Labels

Comments

@Geod24
Copy link
Member

Geod24 commented Jun 7, 2021

The fix for #1474 was incomplete. The following errors out when newly built:

{
    "name": "test",
    "preGenerateCommands": [ "mkdir -p objects/res/" ],
    "sourceFiles-posix": [ "objects/res/*.o" ],
    "sourceFiles-windows": [ "objects/res/*.obj" ]
}

With the following directory structure:

% ll -R
total 1768
-rw-r--r--  1 geod24  staff     179 Jun  7 19:27 dub.json
drwxr-xr-x  3 geod24  staff      96 Jun  7 19:24 source
-rwxr-xr-x  1 geod24  staff  898928 Jun  7 19:26 test

./source:
total 8
-rw-r--r--  1 geod24  staff  89 Jun  7 19:24 app.d

The point is that objects/res/ will be created during the preGenerateCommand, but the error happens during the first glob expansion.

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

No branches or pull requests

1 participant