aspect-build / rules_js

High-performance Bazel rules for running Node.js tools and building JavaScript projects
https://docs.aspect.build/rules/aspect_rules_js
Apache License 2.0
310 stars 107 forks source link

chore(deps): update aspect #1923

Closed renovate[bot] closed 1 month ago

renovate[bot] commented 2 months ago

This PR contains the following updates:

Package Type Update Change
aspect_bazel_lib http_archive minor v2.7.8 -> v2.9.1
aspect_rules_lint http_archive minor v0.7.0 -> v0.21.0

Release Notes

aspect-build/bazel-lib (aspect_bazel_lib) ### [`v2.9.1`](https://redirect.github.com/bazel-contrib/bazel-lib/releases/tag/v2.9.1) [Compare Source](https://redirect.github.com/aspect-build/bazel-lib/compare/v2.9.0...v2.9.1) #### Using Bzlmod with Bazel 6: 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_bazel_lib", version = "2.9.1") ``` > Read more about bzlmod: #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_bazel_lib", sha256 = "f93d386d8d0b0149031175e81df42a488be4267c3ca2249ba5321c23c60bc1f0", strip_prefix = "bazel-lib-2.9.1", url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v2.9.1/bazel-lib-v2.9.1.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains") ### Required bazel-lib dependencies aspect_bazel_lib_dependencies() ### Register bazel-lib toolchains aspect_bazel_lib_register_toolchains() ``` #### What's Changed - fix: declare host_platform as non-dev dep by [@​jbedard](https://redirect.github.com/jbedard) in [https://github.com/bazel-contrib/bazel-lib/pull/945](https://redirect.github.com/bazel-contrib/bazel-lib/pull/945) - fix(presets): restore build runfile links for the 'coverage' command by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/bazel-contrib/bazel-lib/pull/943](https://redirect.github.com/bazel-contrib/bazel-lib/pull/943) **Full Changelog**: https://github.com/bazel-contrib/bazel-lib/compare/v2.9.0...v2.9.1 ### [`v2.9.0`](https://redirect.github.com/bazel-contrib/bazel-lib/releases/tag/v2.9.0) [Compare Source](https://redirect.github.com/aspect-build/bazel-lib/compare/v2.8.1...v2.9.0) #### Using Bzlmod with Bazel 6: 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_bazel_lib", version = "2.9.0") ``` > Read more about bzlmod: #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_bazel_lib", sha256 = "da67c6a785cdc10faf960a22c44501fe6be357a6ebd2bd6101560f9c2a9e06b3", strip_prefix = "bazel-lib-2.9.0", url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v2.9.0/bazel-lib-v2.9.0.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains") ### Required bazel-lib dependencies aspect_bazel_lib_dependencies() ### Register bazel-lib toolchains aspect_bazel_lib_register_toolchains() ``` #### What's Changed - chore: skip linux only tests on non-linux platforms by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/bazel-contrib/bazel-lib/pull/912](https://redirect.github.com/bazel-contrib/bazel-lib/pull/912) - chore: right size tests to supress bazel warning by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/bazel-contrib/bazel-lib/pull/913](https://redirect.github.com/bazel-contrib/bazel-lib/pull/913) - chore: bump to Bazel 7.3.1 by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/bazel-contrib/bazel-lib/pull/914](https://redirect.github.com/bazel-contrib/bazel-lib/pull/914) - refactor: make root workspace bzlmod only by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/bazel-contrib/bazel-lib/pull/915](https://redirect.github.com/bazel-contrib/bazel-lib/pull/915) - chore: enable go, shell, yaml formatters and bazel run //:format by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/bazel-contrib/bazel-lib/pull/917](https://redirect.github.com/bazel-contrib/bazel-lib/pull/917) - chore: remove non-bzlmod dep on @​internal_platforms_do_not_use//host:constraints.bzl now that root workspace is bzlmod-only by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/bazel-contrib/bazel-lib/pull/916](https://redirect.github.com/bazel-contrib/bazel-lib/pull/916) - fix: github workflow vulnerable to script injection by [@​diogoteles08](https://redirect.github.com/diogoteles08) in [https://github.com/bazel-contrib/bazel-lib/pull/899](https://redirect.github.com/bazel-contrib/bazel-lib/pull/899) - chore: use aspect workflows RBE by [@​kormide](https://redirect.github.com/kormide) in [https://github.com/bazel-contrib/bazel-lib/pull/919](https://redirect.github.com/bazel-contrib/bazel-lib/pull/919) - chore: now testing on Aspect Workflows RBE by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/bazel-contrib/bazel-lib/pull/920](https://redirect.github.com/bazel-contrib/bazel-lib/pull/920) - chore: cleanup before bazel-contrib handoff by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/bazel-contrib/bazel-lib/pull/918](https://redirect.github.com/bazel-contrib/bazel-lib/pull/918) - chore(deps): update dependency io_bazel_rules_go to v0.50.0 by [@​renovate](https://redirect.github.com/renovate) in [https://github.com/bazel-contrib/bazel-lib/pull/925](https://redirect.github.com/bazel-contrib/bazel-lib/pull/925) - fix(deps): update golang.org/x/exp digest to [`9b4947d`](https://redirect.github.com/aspect-build/bazel-lib/commit/9b4947d) by [@​renovate](https://redirect.github.com/renovate) in [https://github.com/bazel-contrib/bazel-lib/pull/923](https://redirect.github.com/bazel-contrib/bazel-lib/pull/923) - chore(deps): update coreutils to v0.0.27 by [@​plobsing](https://redirect.github.com/plobsing) in [https://github.com/bazel-contrib/bazel-lib/pull/905](https://redirect.github.com/bazel-contrib/bazel-lib/pull/905) - perf: Improve copy_file.bzl's progress_message and do some cleanup by [@​dzbarsky](https://redirect.github.com/dzbarsky) in [https://github.com/bazel-contrib/bazel-lib/pull/931](https://redirect.github.com/bazel-contrib/bazel-lib/pull/931) - chore(deps): update dependency io_bazel_rules_go to v0.50.1 by [@​renovate](https://redirect.github.com/renovate) in [https://github.com/bazel-contrib/bazel-lib/pull/930](https://redirect.github.com/bazel-contrib/bazel-lib/pull/930) - feat: performance preset: nobuild_runfiles_links by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/bazel-contrib/bazel-lib/pull/922](https://redirect.github.com/bazel-contrib/bazel-lib/pull/922) - chore(deps): update dependency bazel_skylib to v1.7.1 by [@​renovate](https://redirect.github.com/renovate) in [https://github.com/bazel-contrib/bazel-lib/pull/924](https://redirect.github.com/bazel-contrib/bazel-lib/pull/924) - chore(deps): upgrade to newest bsdtar by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/bazel-contrib/bazel-lib/pull/940](https://redirect.github.com/bazel-contrib/bazel-lib/pull/940) - fix: add empty files to tar by [@​thesayyn](https://redirect.github.com/thesayyn) in [https://github.com/bazel-contrib/bazel-lib/pull/939](https://redirect.github.com/bazel-contrib/bazel-lib/pull/939) - chore: update git urls by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/bazel-contrib/bazel-lib/pull/926](https://redirect.github.com/bazel-contrib/bazel-lib/pull/926) - fix: moving the preserve mtime test logic to Go for portability by [@​jpinkul](https://redirect.github.com/jpinkul) in [https://github.com/bazel-contrib/bazel-lib/pull/908](https://redirect.github.com/bazel-contrib/bazel-lib/pull/908) - chore(deps): update dependency rules_go to v0.50.1 by [@​renovate](https://redirect.github.com/renovate) in [https://github.com/bazel-contrib/bazel-lib/pull/941](https://redirect.github.com/bazel-contrib/bazel-lib/pull/941) - chore: stable job name for branch protection by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/bazel-contrib/bazel-lib/pull/883](https://redirect.github.com/bazel-contrib/bazel-lib/pull/883) - feat: add an option to not include copy_to_directory output in runfiles by [@​kormide](https://redirect.github.com/kormide) in [https://github.com/bazel-contrib/bazel-lib/pull/886](https://redirect.github.com/bazel-contrib/bazel-lib/pull/886) - fix(tar): pick up bsdtar windows fix by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/bazel-contrib/bazel-lib/pull/942](https://redirect.github.com/bazel-contrib/bazel-lib/pull/942) #### New Contributors - [@​diogoteles08](https://redirect.github.com/diogoteles08) made their first contribution in [https://github.com/bazel-contrib/bazel-lib/pull/899](https://redirect.github.com/bazel-contrib/bazel-lib/pull/899) **Full Changelog**: https://github.com/bazel-contrib/bazel-lib/compare/v2.8.1...v2.9.0 ### [`v2.8.1`](https://redirect.github.com/bazel-contrib/bazel-lib/releases/tag/v2.8.1) [Compare Source](https://redirect.github.com/aspect-build/bazel-lib/compare/v2.8.0...v2.8.1) #### Using Bzlmod with Bazel 6: 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_bazel_lib", version = "2.8.1") ``` > Read more about bzlmod: #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_bazel_lib", sha256 = "688354ee6beeba7194243d73eb0992b9a12e8edeeeec5b6544f4b531a3112237", strip_prefix = "bazel-lib-2.8.1", url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.8.1/bazel-lib-v2.8.1.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains") ### Required bazel-lib dependencies aspect_bazel_lib_dependencies() ### Register bazel-lib toolchains aspect_bazel_lib_register_toolchains() ``` #### What's Changed - chore: green up CI on main branch by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/bazel-lib/pull/904](https://redirect.github.com/aspect-build/bazel-lib/pull/904) - refactor: deprecated expand_locations which is just pass-through to ctx.expand_location() by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/aspect-build/bazel-lib/pull/910](https://redirect.github.com/aspect-build/bazel-lib/pull/910) - chore: fixup test sizes to resolve warnings by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/aspect-build/bazel-lib/pull/911](https://redirect.github.com/aspect-build/bazel-lib/pull/911) - fix: correctly split quoted args by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/aspect-build/bazel-lib/pull/909](https://redirect.github.com/aspect-build/bazel-lib/pull/909) **Full Changelog**: https://github.com/aspect-build/bazel-lib/compare/v2.8.0...v2.8.1 ### [`v2.8.0`](https://redirect.github.com/bazel-contrib/bazel-lib/releases/tag/v2.8.0) [Compare Source](https://redirect.github.com/aspect-build/bazel-lib/compare/v2.7.9...v2.8.0) #### Using Bzlmod with Bazel 6: 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_bazel_lib", version = "2.8.0") ``` > Read more about bzlmod: #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_bazel_lib", sha256 = "cea19e6d8322fb212f155acb58d1590f632e53abde7f1be5f0a086a93cf4c9f4", strip_prefix = "bazel-lib-2.8.0", url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.8.0/bazel-lib-v2.8.0.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains") ### Required bazel-lib dependencies aspect_bazel_lib_dependencies() ### Register bazel-lib toolchains aspect_bazel_lib_register_toolchains() ``` #### What's Changed - chore: upgrade to Aspect Workflows 5.10.9 by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/aspect-build/bazel-lib/pull/881](https://redirect.github.com/aspect-build/bazel-lib/pull/881) - chore(deps): update bsdtar prebuilt by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/bazel-lib/pull/882](https://redirect.github.com/aspect-build/bazel-lib/pull/882) - fix: Set size to a default value as well as timeout. by [@​matts1](https://redirect.github.com/matts1) in [https://github.com/aspect-build/bazel-lib/pull/839](https://redirect.github.com/aspect-build/bazel-lib/pull/839) - chore(typos): Add typos hook plus some fixes by [@​hofbi](https://redirect.github.com/hofbi) in [https://github.com/aspect-build/bazel-lib/pull/637](https://redirect.github.com/aspect-build/bazel-lib/pull/637) - chore: upgrade to Aspect Workflows 5.10.11 by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/aspect-build/bazel-lib/pull/888](https://redirect.github.com/aspect-build/bazel-lib/pull/888) - chore: upgrade to Aspect Workflows 5.10.12 by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/aspect-build/bazel-lib/pull/890](https://redirect.github.com/aspect-build/bazel-lib/pull/890) - fix(typos): Fix almost all typos with hook by [@​hofbi](https://redirect.github.com/hofbi) in [https://github.com/aspect-build/bazel-lib/pull/884](https://redirect.github.com/aspect-build/bazel-lib/pull/884) - docs(tar): point to the tests as useful examples by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/bazel-lib/pull/892](https://redirect.github.com/aspect-build/bazel-lib/pull/892) - chore(deps): upgrade stardoc by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/bazel-lib/pull/894](https://redirect.github.com/aspect-build/bazel-lib/pull/894) - chore: bazel run //:gazelle_update_repos by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/aspect-build/bazel-lib/pull/895](https://redirect.github.com/aspect-build/bazel-lib/pull/895) - perf: use darwin's clonefile syscall by [@​plobsing](https://redirect.github.com/plobsing) in [https://github.com/aspect-build/bazel-lib/pull/893](https://redirect.github.com/aspect-build/bazel-lib/pull/893) - fix: add bzlmod use_repo of org_golang_x_sys by [@​plobsing](https://redirect.github.com/plobsing) in [https://github.com/aspect-build/bazel-lib/pull/896](https://redirect.github.com/aspect-build/bazel-lib/pull/896) - feat: Adding a preserve mtime feature to copy_to_directory and copy_directory by [@​jpinkul](https://redirect.github.com/jpinkul) in [https://github.com/aspect-build/bazel-lib/pull/898](https://redirect.github.com/aspect-build/bazel-lib/pull/898) - fix(docs): description of jq example didn't match behavior by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/bazel-lib/pull/897](https://redirect.github.com/aspect-build/bazel-lib/pull/897) - chore: turn off bzlmod misguided warning by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/bazel-lib/pull/901](https://redirect.github.com/aspect-build/bazel-lib/pull/901) - chore: bazel run //:buildifier by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/aspect-build/bazel-lib/pull/903](https://redirect.github.com/aspect-build/bazel-lib/pull/903) #### New Contributors - [@​matts1](https://redirect.github.com/matts1) made their first contribution in [https://github.com/aspect-build/bazel-lib/pull/839](https://redirect.github.com/aspect-build/bazel-lib/pull/839) - [@​hofbi](https://redirect.github.com/hofbi) made their first contribution in [https://github.com/aspect-build/bazel-lib/pull/637](https://redirect.github.com/aspect-build/bazel-lib/pull/637) - [@​plobsing](https://redirect.github.com/plobsing) made their first contribution in [https://github.com/aspect-build/bazel-lib/pull/893](https://redirect.github.com/aspect-build/bazel-lib/pull/893) - [@​jpinkul](https://redirect.github.com/jpinkul) made their first contribution in [https://github.com/aspect-build/bazel-lib/pull/898](https://redirect.github.com/aspect-build/bazel-lib/pull/898) **Full Changelog**: https://github.com/aspect-build/bazel-lib/compare/v2.7.9...v2.8.0 ### [`v2.7.9`](https://redirect.github.com/bazel-contrib/bazel-lib/releases/tag/v2.7.9) [Compare Source](https://redirect.github.com/aspect-build/bazel-lib/compare/v2.7.8...v2.7.9) #### Using Bzlmod with Bazel 6: 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_bazel_lib", version = "2.7.9") ``` > Read more about bzlmod: #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_bazel_lib", sha256 = "c780120ab99a4ca9daac69911eb06434b297214743ee7e0a1f1298353ef686db", strip_prefix = "bazel-lib-2.7.9", url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.9/bazel-lib-v2.7.9.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains") ### Required bazel-lib dependencies aspect_bazel_lib_dependencies() ### Register bazel-lib toolchains aspect_bazel_lib_register_toolchains() ``` #### What's Changed - perf: reduce concatenation in relative_path by [@​jbedard](https://redirect.github.com/jbedard) in [https://github.com/aspect-build/bazel-lib/pull/868](https://redirect.github.com/aspect-build/bazel-lib/pull/868) - fix(tar): expose package_dir argument in mtree_mutate by [@​gzm0](https://redirect.github.com/gzm0) in [https://github.com/aspect-build/bazel-lib/pull/873](https://redirect.github.com/aspect-build/bazel-lib/pull/873) - fix(tar): append slash to top-level directory mtree entries by [@​sin-ack](https://redirect.github.com/sin-ack) in [https://github.com/aspect-build/bazel-lib/pull/852](https://redirect.github.com/aspect-build/bazel-lib/pull/852) #### New Contributors - [@​sin-ack](https://redirect.github.com/sin-ack) made their first contribution in [https://github.com/aspect-build/bazel-lib/pull/852](https://redirect.github.com/aspect-build/bazel-lib/pull/852) **Full Changelog**: https://github.com/aspect-build/bazel-lib/compare/v2.7.8...v2.7.9
aspect-build/rules_lint (aspect_rules_lint) ### [`v0.21.0`](https://redirect.github.com/aspect-build/rules_lint/releases/tag/v0.21.0) [Compare Source](https://redirect.github.com/aspect-build/rules_lint/compare/v0.20.0...v0.21.0) #### Using Bzlmod with Bazel 6 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_lint", version = "0.21.0") ### Next, follow the install instructions for ### - linting: https://github.com/aspect-build/rules_lint/blob/v0.21.0/docs/linting.md ### - formatting: https://github.com/aspect-build/rules_lint/blob/v0.21.0/docs/formatting.md ``` #### Using WORKSPACE Paste this snippet into your file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_lint", sha256 = "1e679b081750ca9cedad4f79e371ee5e14d9a157de8018661af9fe45879100b2", strip_prefix = "rules_lint-0.21.0", url = "https://github.com/aspect-build/rules_lint/releases/download/v0.21.0/rules_lint-v0.21.0.tar.gz", ) ### aspect_rules_lint depends on aspect_bazel_lib. Either 1.x or 2.x works. http_archive( name = "aspect_bazel_lib", sha256 = "979667bb7276ee8fcf2c114c9be9932b9a3052a64a647e0dcaacfb9c0016f0a3", strip_prefix = "bazel-lib-2.4.1", url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.4.1/bazel-lib-v2.4.1.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies") ### aspect_bazel_lib depends on bazel_skylib aspect_bazel_lib_dependencies() load( "@​aspect_rules_lint//format:repositories.bzl", ### Fetch additional formatter binaries you need: "fetch_java_format", "fetch_ktfmt", "fetch_swiftformat", "rules_lint_dependencies", ) rules_lint_dependencies() fetch_java_format() fetch_ktfmt() fetch_swiftformat() load("@​aspect_rules_lint//lint:pmd.bzl", "fetch_pmd") fetch_pmd() load("@​aspect_rules_lint//lint:ruff.bzl", "fetch_ruff") fetch_ruff() load("@​aspect_rules_lint//lint:vale.bzl", "fetch_vale") fetch_vale() load("@​aspect_rules_lint//lint:ktlint.bzl", "fetch_ktlint") fetch_ktlint() ######################## ### Optional: multitool provides defaults for some tools such as yamlfmt ### If you do not set up multitool, you will be forced to either set an explicit tool ### for languages that have a default, or set explicit False value, e.g. ### format_multirun(jsonnet = False) load("@​rules_multitool//multitool:multitool.bzl", "multitool") multitool( name = "multitool", lockfiles = [ "@​aspect_rules_lint//format:multitool.lock.json", "@​aspect_rules_lint//lint:multitool.lock.json", ], ) ``` #### What's Changed - feat: add rustfmt by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/235](https://redirect.github.com/aspect-build/rules_lint/pull/235) - Use explicit labels to allow using from other repositories by [@​calebzulawski](https://redirect.github.com/calebzulawski) in [https://github.com/aspect-build/rules_lint/pull/236](https://redirect.github.com/aspect-build/rules_lint/pull/236) - fix(format): Skip files with skip-worktree bit set by [@​honnix](https://redirect.github.com/honnix) in [https://github.com/aspect-build/rules_lint/pull/234](https://redirect.github.com/aspect-build/rules_lint/pull/234) - chore: remove old ruff versions by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/237](https://redirect.github.com/aspect-build/rules_lint/pull/237) #### New Contributors - [@​calebzulawski](https://redirect.github.com/calebzulawski) made their first contribution in [https://github.com/aspect-build/rules_lint/pull/236](https://redirect.github.com/aspect-build/rules_lint/pull/236) - [@​honnix](https://redirect.github.com/honnix) made their first contribution in [https://github.com/aspect-build/rules_lint/pull/234](https://redirect.github.com/aspect-build/rules_lint/pull/234) **Full Changelog**: https://github.com/aspect-build/rules_lint/compare/v0.20.0...v0.21.0 ### [`v0.20.0`](https://redirect.github.com/aspect-build/rules_lint/releases/tag/v0.20.0) [Compare Source](https://redirect.github.com/aspect-build/rules_lint/compare/v0.19.0...v0.20.0) #### Using Bzlmod with Bazel 6 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_lint", version = "0.20.0") ### Next, follow the install instructions for ### - linting: https://github.com/aspect-build/rules_lint/blob/v0.20.0/docs/linting.md ### - formatting: https://github.com/aspect-build/rules_lint/blob/v0.20.0/docs/formatting.md ``` #### Using WORKSPACE Paste this snippet into your file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_lint", sha256 = "572be80134ce36b0ad17229a37945efdfa1381468ae804008a1a16dc35686a05", strip_prefix = "rules_lint-0.20.0", url = "https://github.com/aspect-build/rules_lint/releases/download/v0.20.0/rules_lint-v0.20.0.tar.gz", ) ### aspect_rules_lint depends on aspect_bazel_lib. Either 1.x or 2.x works. http_archive( name = "aspect_bazel_lib", sha256 = "979667bb7276ee8fcf2c114c9be9932b9a3052a64a647e0dcaacfb9c0016f0a3", strip_prefix = "bazel-lib-2.4.1", url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.4.1/bazel-lib-v2.4.1.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies") ### aspect_bazel_lib depends on bazel_skylib aspect_bazel_lib_dependencies() load( "@​aspect_rules_lint//format:repositories.bzl", ### Fetch additional formatter binaries you need: "fetch_java_format", "fetch_ktfmt", "fetch_swiftformat", "rules_lint_dependencies", ) rules_lint_dependencies() fetch_java_format() fetch_ktfmt() fetch_swiftformat() load("@​aspect_rules_lint//lint:pmd.bzl", "fetch_pmd") fetch_pmd() load("@​aspect_rules_lint//lint:ruff.bzl", "fetch_ruff") fetch_ruff() load("@​aspect_rules_lint//lint:vale.bzl", "fetch_vale") fetch_vale() load("@​aspect_rules_lint//lint:ktlint.bzl", "fetch_ktlint") fetch_ktlint() ######################## ### Optional: multitool provides defaults for some tools such as yamlfmt ### If you do not set up multitool, you will be forced to either set an explicit tool ### for languages that have a default, or set explicit False value, e.g. ### format_multirun(jsonnet = False) load("@​rules_multitool//multitool:multitool.bzl", "multitool") multitool( name = "multitool", lockfiles = [ "@​aspect_rules_lint//format:multitool.lock.json", "@​aspect_rules_lint//lint:multitool.lock.json", ], ) ``` #### What's Changed - chore(deps): update terraform to latest by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/202](https://redirect.github.com/aspect-build/rules_lint/pull/202) - feat: remove golangci-lint by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/207](https://redirect.github.com/aspect-build/rules_lint/pull/207) - Changes by create-pull-request action by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/aspect-build/rules_lint/pull/209](https://redirect.github.com/aspect-build/rules_lint/pull/209) - Changes by create-pull-request action by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/aspect-build/rules_lint/pull/213](https://redirect.github.com/aspect-build/rules_lint/pull/213) - fix: pass flag to shfmt to ignore passed files in check mode by [@​daewok](https://redirect.github.com/daewok) in [https://github.com/aspect-build/rules_lint/pull/211](https://redirect.github.com/aspect-build/rules_lint/pull/211) - Changes by create-pull-request action by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/aspect-build/rules_lint/pull/214](https://redirect.github.com/aspect-build/rules_lint/pull/214) - Update flake8 docs by [@​codrin-lanterne](https://redirect.github.com/codrin-lanterne) in [https://github.com/aspect-build/rules_lint/pull/206](https://redirect.github.com/aspect-build/rules_lint/pull/206) - feat(format): Add ability to ignore files by [@​mrmeku](https://redirect.github.com/mrmeku) in [https://github.com/aspect-build/rules_lint/pull/210](https://redirect.github.com/aspect-build/rules_lint/pull/210) - feat(lint): Add Kotlin linter using `ktlint` by [@​smocherla-brex](https://redirect.github.com/smocherla-brex) in [https://github.com/aspect-build/rules_lint/pull/215](https://redirect.github.com/aspect-build/rules_lint/pull/215) - chore: add sh_test for ls-files function by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/216](https://redirect.github.com/aspect-build/rules_lint/pull/216) - ktlint: Add option to use custom rulesets by [@​smocherla-brex](https://redirect.github.com/smocherla-brex) in [https://github.com/aspect-build/rules_lint/pull/220](https://redirect.github.com/aspect-build/rules_lint/pull/220) - Changes by create-pull-request action by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/aspect-build/rules_lint/pull/218](https://redirect.github.com/aspect-build/rules_lint/pull/218) - fix: use `allow_files` in `lint_ruff_aspect` by [@​lpulley](https://redirect.github.com/lpulley) in [https://github.com/aspect-build/rules_lint/pull/217](https://redirect.github.com/aspect-build/rules_lint/pull/217) - Changes by create-pull-request action by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/aspect-build/rules_lint/pull/223](https://redirect.github.com/aspect-build/rules_lint/pull/223) - chore: don't cancel concurrent main builds by [@​gregmagolan](https://redirect.github.com/gregmagolan) in [https://github.com/aspect-build/rules_lint/pull/226](https://redirect.github.com/aspect-build/rules_lint/pull/226) - feat(lint): plumb exit codes as outputs rather than dropping them by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/225](https://redirect.github.com/aspect-build/rules_lint/pull/225) - Changes by create-pull-request action by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/aspect-build/rules_lint/pull/232](https://redirect.github.com/aspect-build/rules_lint/pull/232) - fix: lint.sh pass norun_validations by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/231](https://redirect.github.com/aspect-build/rules_lint/pull/231) - refactor: produce report and exit code in the same action with fixes by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/227](https://redirect.github.com/aspect-build/rules_lint/pull/227) - chore: compatibility with rules_js 2 by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/221](https://redirect.github.com/aspect-build/rules_lint/pull/221) #### New Contributors - [@​daewok](https://redirect.github.com/daewok) made their first contribution in [https://github.com/aspect-build/rules_lint/pull/211](https://redirect.github.com/aspect-build/rules_lint/pull/211) - [@​codrin-lanterne](https://redirect.github.com/codrin-lanterne) made their first contribution in [https://github.com/aspect-build/rules_lint/pull/206](https://redirect.github.com/aspect-build/rules_lint/pull/206) - [@​mrmeku](https://redirect.github.com/mrmeku) made their first contribution in [https://github.com/aspect-build/rules_lint/pull/210](https://redirect.github.com/aspect-build/rules_lint/pull/210) - [@​smocherla-brex](https://redirect.github.com/smocherla-brex) made their first contribution in [https://github.com/aspect-build/rules_lint/pull/215](https://redirect.github.com/aspect-build/rules_lint/pull/215) - [@​lpulley](https://redirect.github.com/lpulley) made their first contribution in [https://github.com/aspect-build/rules_lint/pull/217](https://redirect.github.com/aspect-build/rules_lint/pull/217) **Full Changelog**: https://github.com/aspect-build/rules_lint/compare/v0.18.0...v0.20.0 ### [`v0.19.0`](https://redirect.github.com/aspect-build/rules_lint/releases/tag/v0.19.0) [Compare Source](https://redirect.github.com/aspect-build/rules_lint/compare/v0.18.0...v0.19.0) #### Using Bzlmod with Bazel 6 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_lint", version = "0.19.0") ### Next, follow the install instructions for ### - linting: https://github.com/aspect-build/rules_lint/blob/v0.19.0/docs/linting.md ### - formatting: https://github.com/aspect-build/rules_lint/blob/v0.19.0/docs/formatting.md ``` #### Using WORKSPACE Paste this snippet into your file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_lint", sha256 = "5c9ec682c4d25bd05a1140e0a85d120eb379d46e35bf5770c83ffaf0db680c3c", strip_prefix = "rules_lint-0.19.0", url = "https://github.com/aspect-build/rules_lint/releases/download/v0.19.0/rules_lint-v0.19.0.tar.gz", ) ### aspect_rules_lint depends on aspect_bazel_lib. Either 1.x or 2.x works. http_archive( name = "aspect_bazel_lib", sha256 = "979667bb7276ee8fcf2c114c9be9932b9a3052a64a647e0dcaacfb9c0016f0a3", strip_prefix = "bazel-lib-2.4.1", url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.4.1/bazel-lib-v2.4.1.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies") ### aspect_bazel_lib depends on bazel_skylib aspect_bazel_lib_dependencies() load( "@​aspect_rules_lint//format:repositories.bzl", ### Fetch additional formatter binaries you need: "fetch_java_format", "fetch_ktfmt", "fetch_swiftformat", "rules_lint_dependencies", ) rules_lint_dependencies() fetch_java_format() fetch_ktfmt() fetch_swiftformat() load("@​aspect_rules_lint//lint:pmd.bzl", "fetch_pmd") fetch_pmd() load("@​aspect_rules_lint//lint:ruff.bzl", "fetch_ruff") ### https://github.com/astral-sh/ruff/pull/8631#issuecomment-2022746290 fetch_ruff("v0.3.2") load("@​aspect_rules_lint//lint:vale.bzl", "fetch_vale") fetch_vale() load("@​aspect_rules_lint//lint:ktlint.bzl", "fetch_ktlint") fetch_ktlint() ######################## ### Optional: multitool provides defaults for some tools such as yamlfmt ### If you do not set up multitool, you will be forced to either set an explicit tool ### for languages that have a default, or set explicit False value, e.g. ### format_multirun(jsonnet = False) load("@​rules_multitool//multitool:multitool.bzl", "multitool") multitool( name = "multitool", lockfiles = [ "@​aspect_rules_lint//format:multitool.lock.json", "@​aspect_rules_lint//lint:multitool.lock.json", ], ) ``` #### What's Changed - chore(deps): update terraform to latest by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/202](https://redirect.github.com/aspect-build/rules_lint/pull/202) - feat: remove golangci-lint by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/207](https://redirect.github.com/aspect-build/rules_lint/pull/207) - Changes by create-pull-request action by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/aspect-build/rules_lint/pull/209](https://redirect.github.com/aspect-build/rules_lint/pull/209) - Changes by create-pull-request action by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/aspect-build/rules_lint/pull/213](https://redirect.github.com/aspect-build/rules_lint/pull/213) - fix: pass flag to shfmt to ignore passed files in check mode by [@​daewok](https://redirect.github.com/daewok) in [https://github.com/aspect-build/rules_lint/pull/211](https://redirect.github.com/aspect-build/rules_lint/pull/211) - Changes by create-pull-request action by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/aspect-build/rules_lint/pull/214](https://redirect.github.com/aspect-build/rules_lint/pull/214) - Update flake8 docs by [@​codrin-lanterne](https://redirect.github.com/codrin-lanterne) in [https://github.com/aspect-build/rules_lint/pull/206](https://redirect.github.com/aspect-build/rules_lint/pull/206) - feat(format): Add ability to ignore files by [@​mrmeku](https://redirect.github.com/mrmeku) in [https://github.com/aspect-build/rules_lint/pull/210](https://redirect.github.com/aspect-build/rules_lint/pull/210) - feat(lint): Add Kotlin linter using `ktlint` by [@​smocherla-brex](https://redirect.github.com/smocherla-brex) in [https://github.com/aspect-build/rules_lint/pull/215](https://redirect.github.com/aspect-build/rules_lint/pull/215) - chore: add sh_test for ls-files function by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/216](https://redirect.github.com/aspect-build/rules_lint/pull/216) #### New Contributors - [@​daewok](https://redirect.github.com/daewok) made their first contribution in [https://github.com/aspect-build/rules_lint/pull/211](https://redirect.github.com/aspect-build/rules_lint/pull/211) - [@​codrin-lanterne](https://redirect.github.com/codrin-lanterne) made their first contribution in [https://github.com/aspect-build/rules_lint/pull/206](https://redirect.github.com/aspect-build/rules_lint/pull/206) - [@​mrmeku](https://redirect.github.com/mrmeku) made their first contribution in [https://github.com/aspect-build/rules_lint/pull/210](https://redirect.github.com/aspect-build/rules_lint/pull/210) - [@​smocherla-brex](https://redirect.github.com/smocherla-brex) made their first contribution in [https://github.com/aspect-build/rules_lint/pull/215](https://redirect.github.com/aspect-build/rules_lint/pull/215) **Full Changelog**: https://github.com/aspect-build/rules_lint/compare/v0.18.0...v0.19.0 ### [`v0.18.0`](https://redirect.github.com/aspect-build/rules_lint/releases/tag/v0.18.0) [Compare Source](https://redirect.github.com/aspect-build/rules_lint/compare/v0.17.0...v0.18.0) #### Using Bzlmod with Bazel 6 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_lint", version = "0.18.0") ### Next, follow the install instructions for ### - linting: https://github.com/aspect-build/rules_lint/blob/v0.18.0/docs/linting.md ### - formatting: https://github.com/aspect-build/rules_lint/blob/v0.18.0/docs/formatting.md ``` #### Using WORKSPACE Paste this snippet into your file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_lint", sha256 = "a3e07f07216b6b406d2297c273e7af4cc8096b43288952020cdf4dc12f45b5e8", strip_prefix = "rules_lint-0.18.0", url = "https://github.com/aspect-build/rules_lint/releases/download/v0.18.0/rules_lint-v0.18.0.tar.gz", ) ### aspect_rules_lint depends on aspect_bazel_lib. Either 1.x or 2.x works. http_archive( name = "aspect_bazel_lib", sha256 = "979667bb7276ee8fcf2c114c9be9932b9a3052a64a647e0dcaacfb9c0016f0a3", strip_prefix = "bazel-lib-2.4.1", url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.4.1/bazel-lib-v2.4.1.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies") ### aspect_bazel_lib depends on bazel_skylib aspect_bazel_lib_dependencies() load( "@​aspect_rules_lint//format:repositories.bzl", ### Fetch additional formatter binaries you need: "fetch_java_format", "fetch_ktfmt", "fetch_swiftformat", "rules_lint_dependencies", ) rules_lint_dependencies() fetch_java_format() fetch_ktfmt() fetch_swiftformat() load("@​aspect_rules_lint//lint:pmd.bzl", "fetch_pmd") fetch_pmd() load("@​aspect_rules_lint//lint:ruff.bzl", "fetch_ruff") ### https://github.com/astral-sh/ruff/pull/8631#issuecomment-2022746290 fetch_ruff("v0.3.2") load("@​aspect_rules_lint//lint:vale.bzl", "fetch_vale") fetch_vale() ######################## ### Optional: multitool provides defaults for some tools such as yamlfmt ### If you do not set up multitool, you will be forced to either set an explicit tool ### for languages that have a default, or set explicit False value, e.g. ### format_multirun(jsonnet = False) load("@​rules_multitool//multitool:multitool.bzl", "multitool") multitool( name = "multitool", lockfiles = [ "@​aspect_rules_lint//format:multitool.lock.json", "@​aspect_rules_lint//lint:multitool.lock.json", ], ) ``` #### What's Changed - docs: update install docs for non-multitool linters by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/204](https://redirect.github.com/aspect-build/rules_lint/pull/204) - refactor: bring linters under rules_multitool by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/203](https://redirect.github.com/aspect-build/rules_lint/pull/203) **Full Changelog**: https://github.com/aspect-build/rules_lint/compare/v0.17.0...v0.18.0 ### [`v0.17.0`](https://redirect.github.com/aspect-build/rules_lint/releases/tag/v0.17.0) [Compare Source](https://redirect.github.com/aspect-build/rules_lint/compare/v0.16.0...v0.17.0) #### Using Bzlmod with Bazel 6 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_lint", version = "0.17.0") ### Next, follow the install instructions for ### - linting: https://github.com/aspect-build/rules_lint/blob/v0.17.0/docs/linting.md ### - formatting: https://github.com/aspect-build/rules_lint/blob/v0.17.0/docs/formatting.md ``` #### Using WORKSPACE Paste this snippet into your file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_lint", sha256 = "e8b26aab8d587e596d1463545f799a601edfb5f31b84db3f39a751f03407e2e5", strip_prefix = "rules_lint-0.17.0", url = "https://github.com/aspect-build/rules_lint/releases/download/v0.17.0/rules_lint-v0.17.0.tar.gz", ) ### aspect_rules_lint depends on aspect_bazel_lib. Either 1.x or 2.x works. http_archive( name = "aspect_bazel_lib", sha256 = "979667bb7276ee8fcf2c114c9be9932b9a3052a64a647e0dcaacfb9c0016f0a3", strip_prefix = "bazel-lib-2.4.1", url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.4.1/bazel-lib-v2.4.1.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies") ### aspect_bazel_lib depends on bazel_skylib aspect_bazel_lib_dependencies() load( "@​aspect_rules_lint//format:repositories.bzl", ### Fetch additional formatter binaries you need: "fetch_java_format", "fetch_ktfmt", "fetch_pmd", "fetch_swiftformat", "rules_lint_dependencies", ) rules_lint_dependencies() fetch_pmd() fetch_java_format() fetch_ktfmt() fetch_swiftformat() load("@​aspect_rules_lint//lint:ruff.bzl", "fetch_ruff") ### https://github.com/astral-sh/ruff/pull/8631#issuecomment-2022746290 fetch_ruff("v0.3.2") load("@​aspect_rules_lint//lint:golangci-lint.bzl", "fetch_golangci_lint") fetch_golangci_lint() load("@​aspect_rules_lint//lint:shellcheck.bzl", "fetch_shellcheck") fetch_shellcheck() load("@​aspect_rules_lint//lint:vale.bzl", "fetch_vale") fetch_vale() ######################## ### Optional: multitool provides defaults for some tools such as yamlfmt ### If you do not set up multitool, you will be forced to either set an explicit tool ### for languages that have a default, or set explicit False value, e.g. ### format_multirun(jsonnet = False) load("@​rules_multitool//multitool:multitool.bzl", "multitool") multitool( name = "multitool", lockfile = "@​aspect_rules_lint//format:multitool.lock.json", ) ``` #### What's Changed - fix: format\[\_test] macros handle common attrs by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/200](https://redirect.github.com/aspect-build/rules_lint/pull/200) - feat: shellcheck apply fixes by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/196](https://redirect.github.com/aspect-build/rules_lint/pull/196) - feat(format): expose print_command and change default to False by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/198](https://redirect.github.com/aspect-build/rules_lint/pull/198) **Full Changelog**: https://github.com/aspect-build/rules_lint/compare/v0.16.0...v0.17.0 ### [`v0.16.0`](https://redirect.github.com/aspect-build/rules_lint/releases/tag/v0.16.0) [Compare Source](https://redirect.github.com/aspect-build/rules_lint/compare/v0.15.0...v0.16.0) #### Using Bzlmod with Bazel 6 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_lint", version = "0.16.0") ### Next, follow the install instructions for ### - linting: https://github.com/aspect-build/rules_lint/blob/v0.16.0/docs/linting.md ### - formatting: https://github.com/aspect-build/rules_lint/blob/v0.16.0/docs/formatting.md ``` #### Using WORKSPACE Paste this snippet into your file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_lint", sha256 = "140ae8a51758d5cdec43d97ccf94b4069a571347f0919e606debcd57e62ac745", strip_prefix = "rules_lint-0.16.0", url = "https://github.com/aspect-build/rules_lint/releases/download/v0.16.0/rules_lint-v0.16.0.tar.gz", ) ### aspect_rules_lint depends on aspect_bazel_lib. Either 1.x or 2.x works. http_archive( name = "aspect_bazel_lib", sha256 = "979667bb7276ee8fcf2c114c9be9932b9a3052a64a647e0dcaacfb9c0016f0a3", strip_prefix = "bazel-lib-2.4.1", url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.4.1/bazel-lib-v2.4.1.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies") ### aspect_bazel_lib depends on bazel_skylib aspect_bazel_lib_dependencies() load( "@​aspect_rules_lint//format:repositories.bzl", ### Fetch additional formatter binaries you need: "fetch_java_format", "fetch_ktfmt", "fetch_pmd", "fetch_swiftformat", "rules_lint_dependencies", ) rules_lint_dependencies() fetch_pmd() fetch_java_format() fetch_ktfmt() fetch_swiftformat() load("@​aspect_rules_lint//lint:ruff.bzl", "fetch_ruff") ### https://github.com/astral-sh/ruff/pull/8631#issuecomment-2022746290 fetch_ruff("v0.3.2") load("@​aspect_rules_lint//lint:golangci-lint.bzl", "fetch_golangci_lint") fetch_golangci_lint() load("@​aspect_rules_lint//lint:shellcheck.bzl", "fetch_shellcheck") fetch_shellcheck() load("@​aspect_rules_lint//lint:vale.bzl", "fetch_vale") fetch_vale() ######################## ### Optional: multitool provides defaults for some tools such as yamlfmt ### If you do not set up multitool, you will be forced to either set an explicit tool ### for languages that have a default, or set explicit False value, e.g. ### format_multirun(jsonnet = False) load("@​rules_multitool//multitool:multitool.bzl", "multitool") multitool( name = "multitool", lockfile = "@​aspect_rules_lint//format:multitool.lock.json", ) ``` #### What's Changed - docs: indicate how to configure formatters by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/186](https://redirect.github.com/aspect-build/rules_lint/pull/186) - chore: add terraform_linux_aarch64 by [@​hunshcn](https://redirect.github.com/hunshcn) in [https://github.com/aspect-build/rules_lint/pull/187](https://redirect.github.com/aspect-build/rules_lint/pull/187) - chore: upgrade rules_proto by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/165](https://redirect.github.com/aspect-build/rules_lint/pull/165) - feat: format_test by [@​hunshcn](https://redirect.github.com/hunshcn) in [https://github.com/aspect-build/rules_lint/pull/189](https://redirect.github.com/aspect-build/rules_lint/pull/189) - feat: provide a default for Terraform formatter by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/188](https://redirect.github.com/aspect-build/rules_lint/pull/188) - Changes by create-pull-request action by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/aspect-build/rules_lint/pull/193](https://redirect.github.com/aspect-build/rules_lint/pull/193) - chore: update docs for 1.0 by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/190](https://redirect.github.com/aspect-build/rules_lint/pull/190) - docs: add 'how to add formatter' by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/195](https://redirect.github.com/aspect-build/rules_lint/pull/195) #### New Contributors - [@​hunshcn](https://redirect.github.com/hunshcn) made their first contribution in [https://github.com/aspect-build/rules_lint/pull/187](https://redirect.github.com/aspect-build/rules_lint/pull/187) **Full Changelog**: https://github.com/aspect-build/rules_lint/compare/v0.15.0...v0.16.0 ### [`v0.15.0`](https://redirect.github.com/aspect-build/rules_lint/releases/tag/v0.15.0) [Compare Source](https://redirect.github.com/aspect-build/rules_lint/compare/v0.14.2...v0.15.0) #### Using Bzlmod with Bazel 6 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_lint", version = "0.15.0") ### Next, follow the install instructions for ### - linting: https://github.com/aspect-build/rules_lint/blob/v0.15.0/docs/linting.md ### - formatting: https://github.com/aspect-build/rules_lint/blob/v0.15.0/docs/formatting.md ``` #### Using WORKSPACE Paste this snippet into your file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_lint", sha256 = "e5be0ba6935d2749790a19314088692e8b51f53d15f8030df0a18734988d74b2", strip_prefix = "rules_lint-0.15.0", url = "https://github.com/aspect-build/rules_lint/releases/download/v0.15.0/rules_lint-v0.15.0.tar.gz", ) ### aspect_rules_lint depends on aspect_bazel_lib. Either 1.x or 2.x works. http_archive( name = "aspect_bazel_lib", sha256 = "979667bb7276ee8fcf2c114c9be9932b9a3052a64a647e0dcaacfb9c0016f0a3", strip_prefix = "bazel-lib-2.4.1", url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.4.1/bazel-lib-v2.4.1.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies") ### aspect_bazel_lib depends on bazel_skylib aspect_bazel_lib_dependencies() load( "@​aspect_rules_lint//format:repositories.bzl", ### Fetch additional formatter binaries you need: "fetch_java_format", "fetch_ktfmt", "fetch_pmd", "fetch_swiftformat", "fetch_terraform", "rules_lint_dependencies", ) rules_lint_dependencies() fetch_pmd() fetch_terraform() fetch_java_format() fetch_ktfmt() fetch_swiftformat() load("@​aspect_rules_lint//lint:ruff.bzl", "fetch_ruff") ### https://github.com/astral-sh/ruff/pull/8631#issuecomment-2022746290 fetch_ruff("v0.3.2") load("@​aspect_rules_lint//lint:golangci-lint.bzl", "fetch_golangci_lint") fetch_golangci_lint() load("@​aspect_rules_lint//lint:shellcheck.bzl", "fetch_shellcheck") fetch_shellcheck() load("@​aspect_rules_lint//lint:vale.bzl", "fetch_vale") fetch_vale() ######################## ### Optional: multitool provides defaults for some tools such as yamlfmt ### If you do not set up multitool, you will be forced to either set an explicit tool ### for languages that have a default, or set explicit False value, e.g. ### format_multirun(jsonnet = False) load("@​rules_multitool//multitool:multitool.bzl", "multitool") multitool( name = "multitool", lockfile = "@​aspect_rules_lint//format:multitool.lock.json", ) ``` #### What's Changed - ruff: force exclude honoring in check mode too by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/172](https://redirect.github.com/aspect-build/rules_lint/pull/172) - Changes by create-pull-request action by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/aspect-build/rules_lint/pull/173](https://redirect.github.com/aspect-build/rules_lint/pull/173) - Changes by create-pull-request action by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/aspect-build/rules_lint/pull/177](https://redirect.github.com/aspect-build/rules_lint/pull/177) - chore: update aspect-cli to latest by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/180](https://redirect.github.com/aspect-build/rules_lint/pull/180) - Update lint.sh by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/181](https://redirect.github.com/aspect-build/rules_lint/pull/181) - Revert "Revert "Use multirun ([#​160](https://redirect.github.com/aspect-build/rules_lint/issues/160))" ([#​171](https://redirect.github.com/aspect-build/rules_lint/issues/171))" by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/182](https://redirect.github.com/aspect-build/rules_lint/pull/182) - chore: upgrade rules_multitool for WORKSPACE users by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/183](https://redirect.github.com/aspect-build/rules_lint/pull/183) - chore: fix ci, need newer bazel_features version by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/184](https://redirect.github.com/aspect-build/rules_lint/pull/184) - fix(format): don't bail check mode on first error by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/aspect-build/rules_lint/pull/185](https://redirect.github.com/aspect-build/rules_lint/pull/185) **Full Changelog**: https://github.com/aspect-build/rules_lint/compare/v0.14.2...v0.15.0 ### [`v0.14.2`](https://redirect.github.com/aspect-build/rules_lint/releases/tag/v0.14.2) [Compare Source](https://redirect.github.com/aspect-build/rules_lint/compare/v0.14.1...v0.14.2) #### BREAKING CHANGES Getting ready for 1.0 so a bunch of breaking changes have landed since v0.13. - Many renames: Public API symbol symbols now prefixed with `lint_` - WORKSPACE users should check the snippet below: - must now call `rules_lint_dependencies()` - must either install rules_multitool, or set some languages to False in call to `format_multirun` - multi_formatter_binary renamed to format_multirun - attribute `protobuf` renamed to `protocol_buffer` #### Using Bzlmod with Bazel 6 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_lint", version = "0.14.2") ### Next, follow the install instructions for ### - linting: https://github.com/aspect-build/rules_lint/blob/v0.14.2/docs/linting.md ### - formatting: https://github.com/aspect-build/rules_lint/blob/v0.14.2/docs/formatting.md ``` #### Using WORKSPACE Paste this snippet into your file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_lint", sha256 = "07dd6258894757e44db1a5dd3650731c1432cad7795afdaa6d945d4ba3b84f68", strip_prefix = "rules_lint-0.14.2", url = "https://github.com/aspect-build/rules_lint/releases/download/v0.14.2/rules_lint-v0.14.2.tar.gz", ) ### aspect_rules_lint depends on aspect_bazel_lib. Either 1.x or 2.x works. http_archive( name = "aspect_bazel_lib", sha256 = "979667bb7276ee8fcf2c114c9be9932b9a3052a64a647e0dcaacfb9c0016f0a3", strip_prefix = "bazel-lib-2.4.1", url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.4.1/bazel-lib-v2.4.1.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies") ### aspect_bazel_lib depends on bazel_skylib aspect_bazel_lib_dependencies() load( "@​aspect_rules_lint//format:repositories.bzl", ### Fetch additional formatter binaries you need: "fetch_java_format", "fetch_ktfmt", "fetch_pmd", "fetch_swiftformat", "fetch_terraform", "rules_lint_dependencies", ) rules_lint_dependencies() fetch_pmd() fetch_terraform() fetch_java_format() fetch_ktfmt() fetch_swiftformat() load("@​aspect_rules_lint//lint:ruff.bzl", "fetch_ruff") fetch_ruff() load("@​aspect_rules_lint//lint:golangci-lint.bzl", "fetch_golangci_lint") fetch_golangci_lint() load("@​aspect_rules_lint//lint:shellcheck.bzl", "fetch_shellcheck") fetch_shellcheck() load("@​aspect_rules_lint//lint:vale.bzl", "fetch_vale") fetch_vale() ######################## ### Optional: multitool provides defaults for some tools such as yamlfmt ### If you do not set up multitool, you will be forced to either set an explicit tool ### for languages that have a default, or set explicit False value, e.g. ### format_multirun(jsonnet = False) load("@​rules_multitool//multitool:multitool.bzl", "multitool") multitool( name = "multitool", lockfile = "@​aspect_rules_lint//format:multitool.lock.json", ) ``` #### What's Changed - Revert "Use multirun ([#​160](https://redirect.github.com/aspect-build/rules_lint/issues/160))" b

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



This PR was generated by Mend Renovate. View the repository job log.

aspect-workflows[bot] commented 2 months ago

Test

All tests were cache hits

197 tests (100.0%) were fully cached saving 38s.


Test

e2e/bzlmod

All tests were cache hits

5 tests (100.0%) were fully cached saving 1s.


Test

e2e/gyp_no_install_script

All tests were cache hits

2 tests (100.0%) were fully cached saving 236ms.


Test

e2e/js_image_oci

All tests were cache hits

1 test (100.0%) was fully cached saving 7s.


Test

e2e/npm_link_package

All tests were cache hits

3 tests (100.0%) were fully cached saving 839ms.


Test

e2e/npm_link_package-esm

All tests were cache hits

3 tests (100.0%) were fully cached saving 745ms.


Test

e2e/npm_translate_lock

All tests were cache hits

1 test (100.0%) was fully cached saving 27ms.


Test

e2e/npm_translate_lock_empty

All tests were cache hits

1 test (100.0%) was fully cached saving 27ms.


Test

e2e/npm_translate_lock_multi

All tests were cache hits

2 tests (100.0%) were fully cached saving 296ms.


Test

e2e/npm_translate_lock_partial_clone

All tests were cache hits

1 test (100.0%) was fully cached saving 112ms.


Test

e2e/npm_translate_lock_replace_packages

All tests were cache hits

3 tests (100.0%) were fully cached saving 716ms.


Test

e2e/npm_translate_lock_subdir_patch

All tests were cache hits

1 test (100.0%) was fully cached saving 192ms.


Test

e2e/npm_translate_package_lock

All tests were cache hits

1 test (100.0%) was fully cached saving 81ms.


Test

e2e/npm_translate_yarn_lock

All tests were cache hits

1 test (100.0%) was fully cached saving 81ms.


Test

e2e/package_json_module

All tests were cache hits

1 test (100.0%) was fully cached saving 713ms.


Test

e2e/pnpm_lockfiles

All tests were cache hits

40 tests (100.0%) were fully cached saving 3s.


Test

e2e/pnpm_workspace

All tests were cache hits

10 tests (100.0%) were fully cached saving 2s.


Test

e2e/pnpm_workspace_rerooted

All tests were cache hits

10 tests (100.0%) were fully cached saving 2s.


Test

e2e/repo_mapping

All tests were cache hits

2 tests (100.0%) were fully cached saving 233ms.


Test

e2e/rules_foo

All tests were cache hits

2 tests (100.0%) were fully cached saving 153ms.


Test

e2e/vendored_node

All tests were cache hits

1 test (100.0%) was fully cached saving 171ms.


Buildifier      Format