This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # Shows an end-to-end workflow for linting without failing the build. | |
| # This is meant to mimic the behavior of the `aspect lint` command that you'd have | |
| # by using the Aspect CLI [lint task](https://github.com/aspect-build/rules_lint/blob/main/lint/lint.axl). | |
| # | |
| # To make the build fail when a linter warning is present, run with `--fail-on-violation`. | |
| # To auto-fix violations, run with `--fix` (or `--fix --dry-run` to just print the patches) | |
| set -o errexit -o pipefail -o nounset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| action_cache | |
| action_env | |
| adb | |
| adb_arg | |
| all | |
| allow_analysis_cache_discard | |
| allow_analysis_failures | |
| allow_yanked_versions | |
| allowed_cpu_values | |
| analysis_testing_deps_limit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| bazel 2>/dev/null build --build_runfile_links @yq | |
| YQ=$(bazel 2>/dev/null info execution_root)/$(bazel 2>/dev/null cquery --output=files @yq) | |
| for pkg in $($YQ eval ' | |
| (.importers.".".dependencies // {} | |
| + .importers.".".devDependencies // {} | |
| + .importers.".".optionalDependencies // {}) | |
| | to_entries |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # empty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| load("@deps-test//my:rules.bzl", "x_lib") | |
| x_lib( | |
| name = "a_lib", | |
| testonly = True, | |
| srcs = ["a.json"], | |
| deps = [ | |
| ":b_lib", | |
| "//lib:l_lib", | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BZL_LIBRARY = "bzl_library" | |
| LANG_NAME = "starlark" | |
| BZL_EXT = ".bzl" | |
| aspect.register_rule_kind(BZL_LIBRARY, { | |
| "From": "@bazel_skylib//:bzl_library.bzl", | |
| "NonEmptyAttrs": ["srcs"], | |
| "MergeableAttrs": ["srcs"], | |
| "ResolveAttrs": ["deps"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| rules_kotlin support for 'aspect configure' | |
| """ | |
| KT_JVM_LIBRARY = "kt_jvm_library" | |
| KT_JVM_BINARY = "kt_jvm_binary" | |
| RULES_KOTLIN_REPO_NAME = "io_bazel_rules_kotlin" | |
| PROVIDER_NAME = "kt" | |
| LANG_NAME = "kotlin" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| rules_kotlin support for 'aspect configure' | |
| """ | |
| KT_JVM_LIBRARY = "kt_jvm_library" | |
| KT_JVM_BINARY = "kt_jvm_binary" | |
| RULES_KOTLIN_REPO_NAME = "io_bazel_rules_kotlin" | |
| PROVIDER_NAME = "kt" | |
| LANG_NAME = "kotlin" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -o errexit -o nounset -o pipefail | |
| # Bash installation script for https://github.com/choffmeister/git-describe-semver utility | |
| # for use in --workspace_status command. We can't carry a bazel run dependency on this tool | |
| # since we need to use it in --workspace_status. | |
| git_describe_semver_url_base="https://github.com/choffmeister/git-describe-semver/releases/download" | |
| git_describe_semver_version=0.3.9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Apply a tag to HEAD at the beginning of each week. | |
| # We can use this to create semver-looking tags for releases like | |
| # 2020.44.123+abc1234 | |
| on: | |
| schedule: | |
| # Mondays at 5am UTC / midnight EST | |
| - cron: '0 5 * * 1' | |
| jobs: | |
| tagger: |
NewerOlder