2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-30 01:41:21 +00:00
Commit graph

49 commits

Author SHA1 Message Date
Greg Magolan fb0677ad57
chore: cleanup before bazel-contrib handoff (#918)
* chore: clenaup before bazel-contrib handoff

* chore: apply lint fixes

---------

Co-authored-by: Alex Eagle <alex@aspect.dev>
2024-09-02 09:32:38 -07:00
Greg Magolan cccf5ac1b8
refactor: make root workspace bzlmod only (#915) 2024-08-20 14:20:51 -04:00
Greg Magolan 0e1f1e82c9
chore: bump to Bazel 7.3.1 (#914) 2024-08-20 13:37:52 -04:00
Peter Lobsinger 2b69a7a1f6
fix: add bzlmod use_repo of org_golang_x_sys (#896)
Commit 3c121a9cd9 broke E2E tests with the
following error:

```
(23:31:56) ERROR: no such package '@@[unknown repo 'org_golang_x_sys' requested from @@aspect_bazel_lib~]//unix': The repository '@@[unknown repo 'org_golang_x_sys' requested from @@aspect_bazel_lib~]' could not be resolved: No repository visible as '@org_golang_x_sys' from repository '@@aspect_bazel_lib~'
```

The build worked when operating within the `aspect_bazel_lib` repo
itself, but not when importing it with Bzlmod. This is because the
`org_golang_x_sys` repo is imported indirectly by `rules_go`'s
`go_rules_dependencies` macro in the `WORKSPACE` file, which is still
active under bzlmod because there is no `WORKSPACE.bzlmod` file to
suppress it.
2024-08-08 17:57:03 -07:00
Alex Eagle 0f5e1dcafd
chore(deps): upgrade stardoc (#894)
* chore(deps): upgrade stardoc

This uses the Bazel 7 'starlark_doc_extract' rule which our docsite expects for slurping data.

* chore: stardoc setup in WORKSPACE too

* chore: skip stardoc on bazel 6 in cases where the legacy extractor produces different docstrings
2024-08-08 12:56:11 -07:00
Greg Magolan e11bd38403
chore: tidy in MODULE.bazel file (#846) 2024-05-14 00:17:27 -07:00
Greg Magolan 155e3f250e
chore: bump buildifier, go and gazelle deps (#845) 2024-05-13 23:30:19 -07:00
Sahin Yort fdf3be1c85
fix: register @zstd_toolchains//:all (#832) 2024-05-04 08:15:20 -07:00
Sahin Yort d1d063f3e5
feat: introduce zstd toolchain (#831) 2024-05-03 16:12:56 -07:00
Alex Eagle f4f588f4ea
Use statically-linked bsdtar on all platforms (#804)
* [tar] Switch to statically linked binaries

* chore: don't use bsdtar for extract yet

* chore: add dzbarsky integrity hashes

* Upgrade to 3.7.2.bcr.2 (#806)

* chore: replace URLs with aspect-build fork

---------

Co-authored-by: David Zbarsky <dzbarsky@gmail.com>
2024-03-29 11:35:56 -07:00
renovate[bot] 58ab12b6c6 chore(deps): update dependency bazel_skylib_gazelle_plugin to v1.5.0 2024-02-01 18:29:26 -08:00
renovate[bot] e19315230c chore(deps): update dependency bazel_skylib to v1.5.0 2024-01-30 00:18:44 -08:00
renovate[bot] 86b8cfb2e5 chore(deps): update dependency bazel_features to v0.2.0 2024-01-27 01:09:57 -08:00
renovate[bot] 83b9e7a773 chore(deps): update dependency platforms to v0.0.8 2024-01-22 10:38:07 -08:00
Greg Magolan 5aaa785b96
chore: test against bazel 7.0.0 (#713) 2024-01-07 16:12:05 -08:00
Sahin Yort 4f6b4bd5cb
feat: implement bats test runner (#699) 2023-12-20 13:08:47 -08:00
Derek Cormier 20f1ac39e0
refactor: rework toolchain registration for WORKSPACE and bzlmod users (#597) 2023-10-10 12:16:13 -07:00
Alex Eagle 4a4dafa6e8
Fix bzlmod (#600)
* fix: gazelle is not a devdep

It's easy to see because we reference the symbol two lines below here

* fix: gazelle must be a regular dep

I found this mistake when trying to use bazel-lib in a downstream repo.
2023-10-08 15:57:29 -07:00
Alex Eagle 28cb7a2145
chore: fix tar_toolchain naming (#599)
Also register them in the correct order, matching how WORKSPACE works
2023-10-08 15:16:55 -07:00
Alex Eagle 3a757c8a95
chore: drop Bazel 5 support for 2.0 (#585) 2023-10-05 14:18:42 -07:00
Alex Eagle 652773d5fa
fix: register tar toolchain for bzlmod users (#574) 2023-10-04 10:43:09 -07:00
renovate[bot] e8c60a740d
chore(deps): update dependency buildifier_prebuilt to v6.3.3 (#489)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-29 14:53:05 -07:00
Alex Eagle 14d6c50fc5
chore: rules_go is a non-dev dep at HEAD (#554)
This ensures if you get a SHA of bazel-lib you build the tools/ from head
2023-09-27 09:01:51 -07:00
Sahin Yort ef364b54b4
refactor: consume tools from source if unstamped (#543) 2023-09-24 15:06:10 -07:00
renovate[bot] 62fc770f25 chore(deps): update dependency platforms to v0.0.7 2023-09-13 17:56:37 -07:00
Alex Eagle 2c11bf1e1b
chore: revert fancy release automation (#517)
It doesn't work properly with Publish To BCR app parsing of the module file.
2023-09-06 16:18:53 -07:00
Alex Eagle cd4293c140
refactor: invert the conditional for setting version (#515)
This evaluates the same way, but tricks the parser in Publish-to-BCR app into skipping any replacements
2023-09-06 15:50:37 -07:00
Alex Eagle f7a02f0c8e
fix: strip 'v' prefix from tag when setting module version (#514) 2023-09-06 08:11:13 -07:00
Alex Eagle f1e84078a6
chore: pull in https://github.com/bazel-contrib/rules-template/pull/93 (#513)
This means we won't need a module_dot_bazel.patch file on BCR anymore
2023-09-05 15:19:15 -07:00
Alex Eagle 0726148dea Revert "chore(deps): update dependency buildifier_prebuilt to v6.1.2"
This reverts commit ffa3f3c155.
2023-07-26 08:58:43 -07:00
renovate[bot] ffa3f3c155 chore(deps): update dependency buildifier_prebuilt to v6.1.2 2023-07-25 20:11:16 -07:00
renovate[bot] 6a7246d118 chore(deps): update dependency bazel_skylib to v1.4.2 2023-07-17 15:18:05 -07:00
renovate[bot] aba5f143ed chore(deps): update dependency buildifier_prebuilt to v6.1.0 2023-07-10 23:01:42 -07:00
Jason Bedard 47dd4ce9fd chore: run buildifier 2023-06-13 16:28:17 -07:00
Jason Bedard 7b382c9ff1 ci: enable buildifier check on ci 2023-06-13 16:28:17 -07:00
Alex Eagle 9b148663d1 fix(stardoc): upgrade and stop skipping under bzlmod
Newest stardoc has fixed it, and since bzlmod will select the lowest
version in the dependencies, our bump here will take effect for users
as well.
2023-05-17 15:06:35 -07:00
Sahin Yort 6af964f261
feat: support stamp substituions (#435) 2023-05-16 16:14:50 -07:00
Sahin Yort e31867302e
chore: use coreutils hashsum (#333) 2023-03-10 20:37:57 +03:00
Derek Cormier fff5f10ad8 chore: declare extension repos on single line 2023-02-21 14:11:43 -08:00
Derek Cormier dda3bbda86 chore: depend on skylib release artifact 2023-02-19 16:55:31 -08:00
Greg Magolan 497409b15b
fix: bzlmod toolchain registration for copy_directory & copy_to_directory (#336) 2023-01-16 19:37:36 -08:00
Greg Magolan 690cdbf953
chore: unrelease (#287) 2022-11-17 14:36:52 -08:00
Greg Magolan f43e2944ca release: v1.16.1 2022-11-07 18:29:35 -08:00
Greg Magolan bd65e6ccfb release: v1.16.0 2022-11-02 18:45:57 -07:00
Derek Cormier 20ac1c6e69
chore: upgrade skylib (#248) 2022-09-19 08:06:28 -07:00
Derek Cormier 47be61d96b chore: update MODULE.bazel to use register_toolchains 2022-09-12 16:59:08 -07:00
Derek Cormier 9162a3f552 fix: buildifier lint errors 2022-06-02 18:15:24 -07:00
Alex Eagle 626af72fe8 test: add test coverage for docs rules 2022-04-27 17:34:45 -07:00
Alex Eagle 8138d7f6c3 test: introduce an e2e test asserting that bzlmod works 2022-04-27 17:34:45 -07:00