-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/vcs: only consider actual sub-directory for status checks
Files outside of the module directory can be ignored for the purposes of cleanliness checking. Fixes #3110 Signed-off-by: Roger Peppe <[email protected]> Change-Id: Ifeff4ee85d80751f292390ef1cd1c63e21dcac9e Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194494 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Daniel Martí <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information
Showing
4 changed files
with
34 additions
and
3 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 |
---|---|---|
|
@@ -11,6 +11,12 @@ cd $WORK/example | |
exec git init . | ||
exec git add . | ||
exec git -c user.name=noone -c [email protected] commit -m 'initial commit' | ||
|
||
# Remove an file that's outside the module directory, which | ||
# makes the git repository unclean but the module subdirectory | ||
# remains clean. | ||
rm $WORK/example/otherfile | ||
|
||
cd cuemodule | ||
exec cue mod publish v0.0.1 | ||
stdout '^published x.example/[email protected] to [^ ]+/x.example/e:v0.0.1@sha256:[0-9a-f]+$' | ||
|
@@ -90,3 +96,6 @@ e: true | |
package e | ||
|
||
sensitive: true | ||
-- example/otherfile -- | ||
this will be removed but is outside the module so | ||
that shouldn't stop the publish working. |
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