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

chore: add support for bzlmod #232

Merged
merged 17 commits into from
Mar 8, 2023
Merged

chore: add support for bzlmod #232

merged 17 commits into from
Mar 8, 2023

Conversation

cgrindel
Copy link
Owner

@cgrindel cgrindel commented Mar 8, 2023

  • Clean house:
    • Remove all conditional dependency code.
    • Remove the ability to build buildtools from source. Just use keith/buildifier-prebuilt.
    • Remove unused binary_pkg.
  • Add MODULE.bazel with all dependencies.
  • Update all example workspaces to include a MODULE.bazel.
  • Add --noenable_bzlmod to shared.bazelrc until Bzlmod: stardoc is broken by repo mappings bazelbuild/bazel#14140 is fixed.

Related to #195.

@cgrindel cgrindel self-assigned this Mar 8, 2023
@cgrindel cgrindel mentioned this pull request Mar 8, 2023
21 tasks
@cgrindel cgrindel merged commit c3fde70 into main Mar 8, 2023
@cgrindel cgrindel deleted the gh195_bzlmod branch March 8, 2023 19:09
renovate bot added a commit to cgrindel/github_snippets that referenced this pull request Mar 10, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [cgrindel_bazel_starlib](https://togithub.com/cgrindel/bazel-starlib)
| http_archive | minor | `v0.13.1` -> `v0.14.3` |

---

### Release Notes

<details>
<summary>cgrindel/bazel-starlib</summary>

###
[`v0.14.3`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.3)

[Compare
Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.14.2...v0.14.3)

#### What's Changed

- fix: use minimal .bazelrc in `bzlmod_e2e` workspace by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#244

**Full Changelog**:
cgrindel/bazel-starlib@v0.14.2...v0.14.3

#### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_bazel_starlib",
    sha256 = "0b78a96eff4d0059321643a78e54f11ab9d0e319994299c0f2b2ebd5325c3f48",
    urls = [
        "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.3/bazel-starlib.v0.14.3.tar.gz",
    ],
)

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

load("@&#8203;bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()
```

###
[`v0.14.2`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.2)

[Compare
Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.14.1...v0.14.2)

#### What's Changed

- fix: update metadata for BCR to include OWNER and REPO by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#242

**Full Changelog**:
cgrindel/bazel-starlib@v0.14.1...v0.14.2

#### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_bazel_starlib",
    sha256 = "ef8c590a63ba69bc36b888180ddbdd59b10aa2a0777b61b2be24f2137bffa1d0",
    urls = [
        "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.2/bazel-starlib.v0.14.2.tar.gz",
    ],
)

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

load("@&#8203;bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()
```

###
[`v0.14.1`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.1)

[Compare
Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.14.0...v0.14.1)

#### What's Changed

- Update README.md for v0.14.0 by
[@&#8203;cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator)
in
[cgrindel/bazel-starlib#239
- fix: include `examples/bzlmod_e2e` in release archive by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#240

**Full Changelog**:
cgrindel/bazel-starlib@v0.14.0...v0.14.1

#### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_bazel_starlib",
    sha256 = "ef8c590a63ba69bc36b888180ddbdd59b10aa2a0777b61b2be24f2137bffa1d0",
    urls = [
        "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.1/bazel-starlib.v0.14.1.tar.gz",
    ],
)

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

load("@&#8203;bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()
```

###
[`v0.14.0`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.0)

[Compare
Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.13.1...v0.14.0)

#### What's Changed

- Update README.md for v0.13.1 by
[@&#8203;cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator)
in
[cgrindel/bazel-starlib#229
- chore(deps): update dependency bazel to v6.1.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[cgrindel/bazel-starlib#230
- chore: add support for `bzlmod` by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#232
- chore: add CI tests with and without `bzlmod` enabled by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#233
- chore: add `bzlmod_e2e` in preparation for publishing to BCR by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#234
- chore: refactor CI matrices by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#236
- fix: set `MODULE.bazel` version to 0.0.0 and fix download URL by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#237
- chore: introduce strict bzlmod by adding `WORKSPACE.bzlmod` by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#238

**Full Changelog**:
cgrindel/bazel-starlib@v0.13.1...v0.14.0

#### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_bazel_starlib",
    sha256 = "7c34796efaadf9b3a5bcf2a8364e5ffc2e2a4a2ef2e0f18c0e876161ba8d21c5",
    urls = [
        "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.0/bazel-starlib.v0.14.0.tar.gz",
    ],
)

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

load("@&#8203;bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()
```

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/cgrindel/github_snippets).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTkuMiIsInVwZGF0ZWRJblZlciI6IjM0LjE1OS4yIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot added a commit to cgrindel/rules_swift_package_manager that referenced this pull request Mar 10, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [cgrindel_bazel_starlib](https://togithub.com/cgrindel/bazel-starlib)
| http_archive | minor | `v0.13.1` -> `v0.14.3` |

---

### Release Notes

<details>
<summary>cgrindel/bazel-starlib</summary>

###
[`v0.14.3`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.3)

[Compare
Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.14.2...v0.14.3)

#### What's Changed

- fix: use minimal .bazelrc in `bzlmod_e2e` workspace by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#244

**Full Changelog**:
cgrindel/bazel-starlib@v0.14.2...v0.14.3

#### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_bazel_starlib",
    sha256 = "0b78a96eff4d0059321643a78e54f11ab9d0e319994299c0f2b2ebd5325c3f48",
    urls = [
        "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.3/bazel-starlib.v0.14.3.tar.gz",
    ],
)

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

load("@&#8203;bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()
```

###
[`v0.14.2`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.2)

[Compare
Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.14.1...v0.14.2)

#### What's Changed

- fix: update metadata for BCR to include OWNER and REPO by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#242

**Full Changelog**:
cgrindel/bazel-starlib@v0.14.1...v0.14.2

#### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_bazel_starlib",
    sha256 = "ef8c590a63ba69bc36b888180ddbdd59b10aa2a0777b61b2be24f2137bffa1d0",
    urls = [
        "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.2/bazel-starlib.v0.14.2.tar.gz",
    ],
)

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

load("@&#8203;bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()
```

###
[`v0.14.1`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.1)

[Compare
Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.14.0...v0.14.1)

#### What's Changed

- Update README.md for v0.14.0 by
[@&#8203;cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator)
in
[cgrindel/bazel-starlib#239
- fix: include `examples/bzlmod_e2e` in release archive by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#240

**Full Changelog**:
cgrindel/bazel-starlib@v0.14.0...v0.14.1

#### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_bazel_starlib",
    sha256 = "ef8c590a63ba69bc36b888180ddbdd59b10aa2a0777b61b2be24f2137bffa1d0",
    urls = [
        "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.1/bazel-starlib.v0.14.1.tar.gz",
    ],
)

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

load("@&#8203;bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()
```

###
[`v0.14.0`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.0)

[Compare
Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.13.1...v0.14.0)

#### What's Changed

- Update README.md for v0.13.1 by
[@&#8203;cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator)
in
[cgrindel/bazel-starlib#229
- chore(deps): update dependency bazel to v6.1.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[cgrindel/bazel-starlib#230
- chore: add support for `bzlmod` by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#232
- chore: add CI tests with and without `bzlmod` enabled by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#233
- chore: add `bzlmod_e2e` in preparation for publishing to BCR by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#234
- chore: refactor CI matrices by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#236
- fix: set `MODULE.bazel` version to 0.0.0 and fix download URL by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#237
- chore: introduce strict bzlmod by adding `WORKSPACE.bzlmod` by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#238

**Full Changelog**:
cgrindel/bazel-starlib@v0.13.1...v0.14.0

#### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_bazel_starlib",
    sha256 = "7c34796efaadf9b3a5bcf2a8364e5ffc2e2a4a2ef2e0f18c0e876161ba8d21c5",
    urls = [
        "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.0/bazel-starlib.v0.14.0.tar.gz",
    ],
)

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

load("@&#8203;bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()
```

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/cgrindel/swift_bazel).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTkuMiIsInVwZGF0ZWRJblZlciI6IjM0LjE1OS4yIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant