-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Jan Jurzitza <[email protected]>
- Loading branch information
1 parent
52fd928
commit f86b06a
Showing
11 changed files
with
118 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Added `--recipe=` switch to DUB | ||
|
||
You can now override which file is used as recipe, instead of the default | ||
`dub.sdl` and `dub.json`. This means you can define multiple dub.json files for | ||
local development, for example for special local-machine-only operations, and | ||
select which one to use over the CLI. | ||
|
||
``` | ||
dub build --recipe=custom-dub.json | ||
``` | ||
|
||
This can also be used to pick dub.sdl over dub.json, if both of them exist in | ||
the same directory. Although this is discouraged for interoperability with other | ||
DUB-supporting tools and general confusion for users. Both existing at the same | ||
time may also become an error when this switch is not specified in the future. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
cd ${CURR_DIR}/issue2684-recipe-file | ||
${DUB} | grep -c "This was built using dub.json" > /dev/null | ||
${DUB} --recipe=dubWithAnotherSource.json | grep -c "This was built using dubWithAnotherSource.json" > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.dub | ||
docs.json | ||
__dummy.html | ||
docs/ | ||
/issue2684-recipe-file | ||
issue2684-recipe-file.so | ||
issue2684-recipe-file.dylib | ||
issue2684-recipe-file.dll | ||
issue2684-recipe-file.a | ||
issue2684-recipe-file.lib | ||
issue2684-recipe-file-test-* | ||
*.exe | ||
*.pdb | ||
*.o | ||
*.obj | ||
*.lst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module app; | ||
import std.stdio; | ||
|
||
void main() | ||
{ | ||
writeln("This was built using dubWithAnotherSource.json"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"authors": [ | ||
"Hipreme" | ||
], | ||
"copyright": "Copyright © 2023, Hipreme", | ||
"description": "A minimal D application.", | ||
"license": "public domain", | ||
"name": "issue2684-recipe-file" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"authors": [ | ||
"Hipreme" | ||
], | ||
"copyright": "Copyright © 2023, Hipreme", | ||
"description": "A minimal D application.", | ||
"sourcePaths": ["anotherSource"], | ||
"license": "public domain", | ||
"name": "issue2684-recipe-file" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module app; | ||
import std.stdio; | ||
|
||
void main() | ||
{ | ||
writeln("This was built using dub.json. | ||
Try using the other configuration by calling dub with: | ||
dub --recipe=dubWithAnotherSource.json | ||
"); | ||
} |