Skip to content

Commit

Permalink
build: do not create bazel convenience symlinks
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 607751773
  • Loading branch information
Google APIs authored and Copybara-Service committed Feb 16, 2024
1 parent 82d19ed commit 6758c80
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ build --repo_env=BAZEL_CXXOPTS="-std=c++14"
# This is to avoid JVM SIGBUS crashes on highly parallel builds,
# see https://github.com/bazelbuild/bazel/issues/3236 for more details
build --enable_platform_specific_config
build:linux --sandbox_tmpfs_path=/tmp
build:linux --sandbox_tmpfs_path=/tmp

# Do not create bazel-* symlinks in the workspace directory
build:linux --experimental_convenience_symlinks=ignore
test:linux --experimental_convenience_symlinks=ignore
run:linux --experimental_convenience_symlinks=ignore
10 changes: 5 additions & 5 deletions .github/workflows/diregapic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ jobs:
- name: Regenerate API definitions
run: |
git config --global --add safe.directory /__w/googleapis/googleapis
bazelisk build //google/cloud/compute/v1:compute_gen
bazelisk build --experimental_convenience_symlinks=normal //google/cloud/compute/v1:compute_gen
cp bazel-bin/google/cloud/compute/v1/compute_gen.proto google/cloud/compute/v1/compute.proto
bazelisk build //google/cloud/compute/v1:compute_grpc_service_config_gen
bazelisk build --experimental_convenience_symlinks=normal //google/cloud/compute/v1:compute_grpc_service_config_gen
cp bazel-bin/google/cloud/compute/v1/compute_grpc_service_config_gen.json google/cloud/compute/v1/compute_grpc_service_config.json
bazelisk build //google/cloud/compute/v1:compute_gapic_gen
bazelisk build --experimental_convenience_symlinks=normal //google/cloud/compute/v1:compute_gapic_gen
cp bazel-bin/google/cloud/compute/v1/compute_gapic_gen.yaml google/cloud/compute/v1/compute_gapic.yaml
echo api_changes=$(git diff-index --shortstat HEAD) >> $GITHUB_ENV
- name: Build GAPIC clients
if: contains(env.api_changes, 'file')
run: |
bazelisk build //google/cloud/compute/v1/...
bazelisk build //google/cloud/compute/v1/...
bazelisk build --experimental_convenience_symlinks=normal //google/cloud/compute/v1/...
bazelisk build --experimental_convenience_symlinks=normal //google/cloud/compute/v1/...
- name: Create PR
uses: googleapis/code-suggester@v2
env:
Expand Down

0 comments on commit 6758c80

Please sign in to comment.