Skip to content

Commit 524dba4

Browse files
committed
try-import .bazelrc.* files everywhere
1 parent d63bfde commit 524dba4

File tree

18 files changed

+81
-23
lines changed

18 files changed

+81
-23
lines changed

.github/workflows/workflow.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ jobs:
9797
build --config=$BUILD_CONFIG
9898
common --enable_bzlmod=${{ matrix.bzlmod }}
9999
EOF
100-
cp .bazelrc.local rules_haskell_nix
101-
cp .bazelrc.local rules_haskell_tests
102100
- name: Build & test - rules_haskell
103101
if: matrix.module == 'rules_haskell'
104102
uses: tweag/run-nix-shell@v0
@@ -208,7 +206,6 @@ jobs:
208206
$bzlmod_cache_silo_key
209207
common --enable_bzlmod=${{ matrix.bzlmod }}
210208
EOF
211-
cp .bazelrc.local rules_haskell_tests
212209
- name: Build & test - rules_haskell
213210
if: matrix.module == 'rules_haskell'
214211
shell: bash

examples/.bazelrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/.bazelrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import %workspace%/../.bazelrc.common
2+
import %workspace%/../.bazelrc.bzlmod
3+
4+
# Remote Cache Authentication
5+
# ---------------------------
6+
try-import %workspace%/../.bazelrc.auth
7+
8+
# User Configuration
9+
# ------------------
10+
try-import %workspace%/../.bazelrc.local

examples/.bazelrc.bzlmod

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
# Disable bzlmod explicitly by default, see https://github.com/tweag/rules_haskell/issues/1977
2+
common --noenable_bzlmod
3+
14
common:bzlmod --enable_bzlmod
2-
common:common --registry=file://%workspace%/../registry --registry=https://bcr.bazel.build
5+
# Note, have to use /// to make Bazel not crash on Windows
6+
common:common --registry=file:///%workspace%/../registry --registry=https://bcr.bazel.build
7+

examples/.bazelrc.common

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/.bazelrc.local

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/arm/.bazelrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/arm/.bazelrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import %workspace%/../../.bazelrc.common
2+
import %workspace%/../../.bazelrc.bzlmod
3+
4+
# Remote Cache Authentication
5+
# ---------------------------
6+
try-import %workspace%/../../.bazelrc.auth
7+
8+
# User Configuration
9+
# ------------------
10+
try-import %workspace%/../../.bazelrc.local

examples/arm/.bazelrc.bzlmod

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
common:bzlmod --experimental_enable_bzlmod
2-
common:bzlmod --registry=file://%workspace%/../../registry --registry=https://bcr.bazel.build
1+
# Disable bzlmod explicitly by default, see https://github.com/tweag/rules_haskell/issues/1977
2+
common --noenable_bzlmod
3+
4+
common:bzlmod --enable_bzlmod
5+
# Note, have to use /// to make Bazel not crash on Windows
6+
common:common --registry=file:///%workspace%/../../registry --registry=https://bcr.bazel.build
7+

examples/arm/.bazelrc.common

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)