Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazel: support sub directories #2312

Merged
merged 1 commit into from
Jul 2, 2019

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Jun 21, 2019

This PR is based on this other PR: #2309

We use to only support Bazel projects with the WORKSPACE located in the artifact's workspace. Now, the artifact can be in a sub folder of the Bazel project.

@codecov
Copy link

codecov bot commented Jun 21, 2019

Codecov Report

Merging #2312 into master will increase coverage by <.01%.
The diff coverage is 70.37%.

Impacted Files Coverage Δ
pkg/skaffold/build/bazel/dependencies.go 80.76% <70.37%> (-12.57%) ⬇️

@dgageot dgageot force-pushed the bazel-workspace branch 12 times, most recently from 6ca8d22 to 85d91af Compare June 28, 2019 15:09
@dgageot dgageot force-pushed the bazel-workspace branch 2 times, most recently from 25df53f to 60a0645 Compare July 1, 2019 13:59
@dgageot dgageot added the kokoro:run runs the kokoro jobs on a PR label Jul 1, 2019
@dgageot dgageot force-pushed the bazel-workspace branch from 60a0645 to d368664 Compare July 1, 2019 15:06
@kokoro-team kokoro-team removed the kokoro:run runs the kokoro jobs on a PR label Jul 1, 2019
@dgageot dgageot force-pushed the bazel-workspace branch from d368664 to deebd7a Compare July 1, 2019 16:27

parent := filepath.Dir(dir)
if parent == dir {
return "", errors.New("no git repository found")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this message be something bazel-related instead of git-related?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol. I’ll fix that tomorrow!

@dgageot dgageot force-pushed the bazel-workspace branch from deebd7a to 90b4429 Compare July 2, 2019 04:44
@dgageot
Copy link
Contributor Author

dgageot commented Jul 2, 2019

@nkubala This is fixed now

@balopat balopat merged commit 0336905 into GoogleContainerTools:master Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants