Skip to content

Commit

Permalink
try-import .bazelrc.* files everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
prednaz committed Feb 22, 2024
1 parent d63bfde commit f27bb96
Show file tree
Hide file tree
Showing 16 changed files with 42 additions and 32 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ jobs:
build --config=$BUILD_CONFIG
common --enable_bzlmod=${{ matrix.bzlmod }}
EOF
cp .bazelrc.local rules_haskell_nix
cp .bazelrc.local rules_haskell_tests
- name: Build & test - rules_haskell
if: matrix.module == 'rules_haskell'
uses: tweag/run-nix-shell@v0
Expand Down Expand Up @@ -208,7 +206,6 @@ jobs:
$bzlmod_cache_silo_key
common --enable_bzlmod=${{ matrix.bzlmod }}
EOF
cp .bazelrc.local rules_haskell_tests
- name: Build & test - rules_haskell
if: matrix.module == 'rules_haskell'
shell: bash
Expand Down
1 change: 0 additions & 1 deletion examples/.bazelrc

This file was deleted.

10 changes: 10 additions & 0 deletions examples/.bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import %workspace%/../.bazelrc.common
import %workspace%/../.bazelrc.bzlmod

# Remote Cache Authentication
# ---------------------------
try-import %workspace%/../.bazelrc.auth

# User Configuration
# ------------------
try-import %workspace%/../.bazelrc.local
2 changes: 0 additions & 2 deletions examples/.bazelrc.bzlmod

This file was deleted.

1 change: 0 additions & 1 deletion examples/.bazelrc.common

This file was deleted.

1 change: 0 additions & 1 deletion examples/.bazelrc.local

This file was deleted.

1 change: 0 additions & 1 deletion examples/arm/.bazelrc

This file was deleted.

10 changes: 10 additions & 0 deletions examples/arm/.bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import %workspace%/../../.bazelrc.common
import %workspace%/../../.bazelrc.bzlmod

# Remote Cache Authentication
# ---------------------------
try-import %workspace%/../../.bazelrc.auth

# User Configuration
# ------------------
try-import %workspace%/../../.bazelrc.local
2 changes: 0 additions & 2 deletions examples/arm/.bazelrc.bzlmod

This file was deleted.

1 change: 0 additions & 1 deletion examples/arm/.bazelrc.common

This file was deleted.

8 changes: 6 additions & 2 deletions rules_haskell_nix/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import %workspace%/../.bazelrc.common
import %workspace%/.bazelrc.bzlmod
import %workspace%/../.bazelrc.bzlmod

# Remote Cache Authentication
# ---------------------------
try-import %workspace%/../.bazelrc.auth

# User Configuration
# ------------------
try-import %workspace%/.bazelrc.local
try-import %workspace%/../.bazelrc.local
4 changes: 0 additions & 4 deletions rules_haskell_nix/.bazelrc.bzlmod

This file was deleted.

8 changes: 6 additions & 2 deletions rules_haskell_tests/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import %workspace%/../.bazelrc.common
import %workspace%/.bazelrc.bzlmod
import %workspace%/../.bazelrc.bzlmod

# Remote Cache Authentication
# ---------------------------
try-import %workspace%/../.bazelrc.auth

# User Configuration
# ------------------
try-import %workspace%/.bazelrc.local
try-import %workspace%/../.bazelrc.local
7 changes: 0 additions & 7 deletions rules_haskell_tests/.bazelrc.bzlmod

This file was deleted.

1 change: 0 additions & 1 deletion tutorial/.bazelrc

This file was deleted.

10 changes: 10 additions & 0 deletions tutorial/.bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import %workspace%/../.bazelrc.common
import %workspace%/../.bazelrc.bzlmod

# Remote Cache Authentication
# ---------------------------
try-import %workspace%/../.bazelrc.auth

# User Configuration
# ------------------
try-import %workspace%/../.bazelrc.local
2 changes: 0 additions & 2 deletions tutorial/.bazelrc.bzlmod

This file was deleted.

1 change: 0 additions & 1 deletion tutorial/.bazelrc.common

This file was deleted.

1 change: 0 additions & 1 deletion tutorial/.bazelrc.local

This file was deleted.

0 comments on commit f27bb96

Please sign in to comment.