Skip to content

Commit e67bd61

Browse files
author
Christian Weichel
committed
[breaking] WORKSPACE and BUILD are now WORKSPACE.yaml and BUILD.yaml
1 parent e17e090 commit e67bd61

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

BUILD renamed to BUILD.yaml

File renamed without changes.
File renamed without changes.

pkg/leeway/package.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ func FindUnresolvedArguments(pkg *Package) ([]string, error) {
9797
return res, nil
9898
}
9999

100-
// FindWorkspace looks for a WORKSPACE file within the path. If multiple such files are found,
100+
// FindWorkspace looks for a WORKSPACE.yaml file within the path. If multiple such files are found,
101101
// an error is returned.
102102
func FindWorkspace(path string, args Arguments) (Workspace, error) {
103-
root := filepath.Join(path, "WORKSPACE")
103+
root := filepath.Join(path, "WORKSPACE.yaml")
104104
fc, err := ioutil.ReadFile(root)
105105
if err != nil {
106106
return Workspace{}, err
@@ -159,7 +159,7 @@ func FindWorkspace(path string, args Arguments) (Workspace, error) {
159159
// discoverComponents discovers components in a workspace
160160
func discoverComponents(workspace *Workspace, args Arguments) ([]Component, error) {
161161
path := workspace.Origin
162-
pths, err := doublestar.Glob(filepath.Join(path, "**/BUILD"))
162+
pths, err := doublestar.Glob(filepath.Join(path, "**/BUILD.yaml"))
163163
if err != nil {
164164
return nil, err
165165
}
@@ -181,7 +181,7 @@ func discoverComponents(workspace *Workspace, args Arguments) ([]Component, erro
181181
return comps, nil
182182
}
183183

184-
// loadComponent loads a component from a BUILD file
184+
// loadComponent loads a component from a BUILD.yaml file
185185
func loadComponent(workspace *Workspace, path string, args Arguments) (Component, error) {
186186
var comp Component
187187

0 commit comments

Comments
 (0)