-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue/cmd: allow fmt to pass with errors
Also fixes use of internal `*` to match all packages. Fixes #653 Fixes #644 Change-Id: I3f507c8a7d8013372972cbb11c9eeac01a50ce9f Reviewed-on: https://cue-review.googlesource.com/c/cue/+/8301 Reviewed-by: CUE cueckoo <cueckoo@gmail.com> Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
- Loading branch information
Showing
5 changed files
with
61 additions
and
8 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
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,23 @@ | ||
# ignore certain errors for cue fmt | ||
cue fmt x.cue | ||
|
||
# Issue #644 | ||
cue fmt ./... | ||
|
||
cmp x.cue out/x_cue | ||
-- cue.mod/module.cue -- | ||
module: "example.com/x" | ||
-- x.cue -- | ||
package x | ||
|
||
import "blah.com/rubbish" | ||
|
||
x: 5 | ||
y: unresolved | ||
-- out/x_cue -- | ||
package x | ||
|
||
import "blah.com/rubbish" | ||
|
||
x: 5 | ||
y: unresolved |
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