Skip to content

Instantly share code, notes, and snippets.

Avatar
🌿

Alex Eagle alexeagle

🌿
View GitHub Profile
View git-describe-semver.sh
#!/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
@alexeagle
alexeagle / weekly-tag.yaml
Last active January 10, 2023 20:01
GitHub Actions to tag a repo at the beginning of each week. See blog.aspect.dev
View weekly-tag.yaml
# 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:
View gcc-toolchain cc_library inputs
bazel-out/k8-fastbuild/internal/_middlemen/_S_Scommon_Stime_Cstamped_Umessage-BazelCppSemantics_build_arch_k8-fastbuild
common/time/stamped_message.cc
external/bazel_tools/tools/cpp/grep-includes.sh
external/gcc_toolchain_x86_64/bin/as
external/gcc_toolchain_x86_64/bin/cpp
external/gcc_toolchain_x86_64/bin/g++
external/gcc_toolchain_x86_64/bin/gcc
external/gcc_toolchain_x86_64/bin/gfortran
external/gcc_toolchain_x86_64_files/bin/x86_64-buildroot-linux-gnu-as
external/gcc_toolchain_x86_64_files/bin/x86_64-linux-as
View gist:f8198682dd2ba58867b86e509592c887
*** log1.txt 2022-04-26 16:34:37.567675798 -0700
--- log2.txt 2022-04-26 16:34:37.639676500 -0700
***************
*** 9,17 ****
}
inputs {
path: "bazel-out/k8-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/make_tool_foreign_cc/build_script.sh"
digest {
! hash: "7971b63c0d2946d94d7ce22b38c1c80b99c3066d7136af266619f7303ffc6ba1"
size_bytes: 1943
View stats.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Bazel Rulesets</title>
<meta name="description" content="Bazel rulesets vital statistics" />
<link rel="icon" type="image/png" href="/favicon.png" />
<!-- Webfont -->
View Aspect CLA
### Aspect Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by Aspect Build Systems Inc or its affiliates (“Aspect”).
This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner,
to Aspect in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact hello@aspect.dev.
You agree that the following terms apply to all of your past, present and future Contributions.
Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
View gist:2001e9e58e261c07461fb05e47a95454
diff --git a/WORKSPACE b/WORKSPACE
index 78a36aa..96cacc6 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -35,9 +35,9 @@ yarn_install(
# https://github.com/bazelbuild/rules_docker/releases
http_archive(
name = "io_bazel_rules_docker",
- sha256 = "59536e6ae64359b716ba9c46c39183403b01eabfbd57578e84398b4829ca499a",
- strip_prefix = "rules_docker-0.22.0",
View BUILD
load("@bazel_skylib//rules:write_file.bzl", "write_file")
load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
# Trivial test fixture: a nodejs program that writes to a file
write_file(
name = "js",
out = "some.js",
content = ["require('fs').writeFileSync(process.argv[2], process.version + '\\n')"],
)
View local_config_cc-BUILD.bzl
# Copyright 2016 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,