-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problem with input dir not detecting controlling workspace in cer…
…tain cases (#3233)
- Loading branch information
1 parent
915ae13
commit 5b37673
Showing
9 changed files
with
161 additions
and
7 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
6 changes: 6 additions & 0 deletions
6
private/buf/cmd/buf/testdata/workspace/success/shared_parent_dir/buf.yaml
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 @@ | ||
version: v2 | ||
modules: | ||
- path: standalone | ||
- path: parent/foo | ||
- path: parent/nextlayer/bar | ||
- path: parent/nextlayer/baz |
7 changes: 7 additions & 0 deletions
7
private/buf/cmd/buf/testdata/workspace/success/shared_parent_dir/parent/foo/foo.proto
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 @@ | ||
package foo; | ||
|
||
import "imported.proto"; | ||
|
||
message Foo { | ||
optional standalone.Imported i = 1; | ||
} |
7 changes: 7 additions & 0 deletions
7
...e/buf/cmd/buf/testdata/workspace/success/shared_parent_dir/parent/nextlayer/bar/bar.proto
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 @@ | ||
package bar; | ||
|
||
import "foo.proto"; | ||
|
||
message Bar { | ||
optional foo.Foo foo = 1; | ||
} |
7 changes: 7 additions & 0 deletions
7
...e/buf/cmd/buf/testdata/workspace/success/shared_parent_dir/parent/nextlayer/baz/baz.proto
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 @@ | ||
package baz; | ||
|
||
import "bar.proto"; | ||
|
||
message Baz { | ||
optional bar.Bar bar = 1; | ||
} |
3 changes: 3 additions & 0 deletions
3
private/buf/cmd/buf/testdata/workspace/success/shared_parent_dir/standalone/imported.proto
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,3 @@ | ||
package standalone; | ||
|
||
message Imported {} |
3 changes: 3 additions & 0 deletions
3
private/buf/cmd/buf/testdata/workspace/success/shared_parent_dir/standalone/standalone.proto
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,3 @@ | ||
package standalone; | ||
|
||
message Standalone {} |
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