Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16602 from ben-albrecht/mason-no-deps-bug-fix
Fix mason bug that occurred Mason.toml has no dependencies table Fix a regression where lacking a `[dependencies]` table produced an error during `mason update` (called by `mason build`, `mason test`, etc.) Also, added a test for this behavior. - [x] local testing of `test/mason` [Reviewed by @daviditen]
- Loading branch information
Showing
12 changed files
with
55 additions
and
2 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 @@ | ||
../CLEANFILES |
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 @@ | ||
../COMPOPTS |
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 @@ | ||
../EXECENV |
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 @@ | ||
../SKIPIF |
Empty 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,2 @@ | ||
target/ | ||
Mason.lock |
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,6 @@ | ||
[brick] | ||
name = "noDeps" | ||
version = "0.1.0" | ||
chplVersion = "1.24.0" | ||
license = "None" | ||
|
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,4 @@ | ||
/* Documentation for noDeps */ | ||
module noDeps { | ||
writeln("New library: noDeps"); | ||
} |
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,24 @@ | ||
/* Test a package with Manifest.toml without [dependencies] table */ | ||
use MasonBuild; | ||
use MasonNew; | ||
use MasonUtils; | ||
|
||
use FileSystem; | ||
use SysCTypes; | ||
|
||
extern proc setenv(name : c_string, envval : c_string, overwrite : c_int) : c_int; | ||
|
||
// chdir and reset PWD env (some mason internals rely on this) | ||
proc changeDir(relPath: string) { | ||
const oldPWD = getEnv('PWD'); | ||
here.chdir(relPath); | ||
const newPWD = '/'.join(oldPWD, relPath); | ||
setenv("PWD", newPWD.c_str(), 1); | ||
} | ||
|
||
proc main() { | ||
const package = '_noDeps'; | ||
changeDir(package); | ||
const args = ["mason", "build"]; | ||
masonBuild(args); | ||
} |
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 @@ | ||
_noDeps/target |
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,4 @@ | ||
Skipping registry update since no dependency found in manifest file. | ||
Compiling [debug] target: noDeps | ||
Build Successful | ||
|
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