Skip to content

Commit

Permalink
Add copyright headers
Browse files Browse the repository at this point in the history
Summary:
Automated checkup identified that certain files were missing copyright
headers. Grepped for all files that did not contain "Meta Platforms" and added
headers, confirmed they have a separate license header, or were generated code.

Reviewed By: bigfootjon

Differential Revision: D64014138

fbshipit-source-id: 2b04790b6be772dafce614b1f90c632fd8271ad7
  • Loading branch information
ckwalsh authored and facebook-github-bot committed Oct 11, 2024
1 parent 9cb0be5 commit 1ae8f72
Show file tree
Hide file tree
Showing 129 changed files with 911 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shim/.buckconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

[cells]
shim = .
prelude = prelude
Expand Down
6 changes: 6 additions & 0 deletions shim/.buckroot
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.
7 changes: 7 additions & 0 deletions shim/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

# We currently expect end users to run reindeer vendor themselves
# so mark these things as to ignore
/third-party/rust/.cargo/
Expand Down
7 changes: 7 additions & 0 deletions shim/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("@prelude//toolchains:cxx.bzl", "system_cxx_toolchain")
load("@prelude//toolchains:genrule.bzl", "system_genrule_toolchain")
load("@prelude//toolchains:go.bzl", "system_go_toolchain")
Expand Down
7 changes: 7 additions & 0 deletions shim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@ should be nearly identical to the internal buck2 experience.

Prefer to use [rules from the buck2 prelude](https://buck2.build/docs/prelude/globals/)
and the [buck2 build apis](https://buck2.build/docs/api/build/globals/)

## License

This source code is licensed under both the MIT license found in the
LICENSE-MIT file in the root directory of this source tree and the Apache
License, Version 2.0 found in the LICENSE-APACHE file in the root directory
of this source tree.
7 changes: 7 additions & 0 deletions shim/third-party/macros/rust_third_party.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

# @nolint

def third_party_rust_prebuilt_cxx_library(name, **kwargs):
Expand Down
7 changes: 7 additions & 0 deletions shim/third-party/ocaml/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

# @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed."
prebuilt_cxx_library(
name = "ocaml-dev",
Expand Down
7 changes: 7 additions & 0 deletions shim/third-party/ocaml/opam/lib/ocaml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

# Fake file so that buck2 can run in non-ocamlrep repos
7 changes: 7 additions & 0 deletions shim/third-party/proto/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

# @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed."
load(":defs.bzl", "protoc_distribution")

Expand Down
7 changes: 7 additions & 0 deletions shim/third-party/proto/defs.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("@prelude//http_archive/exec_deps.bzl", "HttpArchiveExecDeps")
load(":releases.bzl", "releases")

Expand Down
7 changes: 7 additions & 0 deletions shim/third-party/proto/releases.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

# @generated
# Update with ./update.py > releases.bzl
releases = {
Expand Down
16 changes: 16 additions & 0 deletions shim/third-party/proto/update.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

"""Query recent Github release artifacts for protobuf.
Use this script to update the releases.bzl file that contains metadata about
Expand Down Expand Up @@ -36,6 +43,14 @@
}
}
"""
COPYRIGHT_HEADER = """\
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.
"""

async def query_releases():
async with aiohttp.ClientSession(raise_for_status=True) as session:
Expand Down Expand Up @@ -91,6 +106,7 @@ async def main():
releases = await query_releases()
formatted = format_releases(releases)
with_sha256 = await hash_releases(formatted)
print(COPYRIGHT_HEADER)
print("# @" + "generated")
print("# Update with ./update.py > releases.bzl")
print("releases = ", json.dumps(with_sha256, indent=4))
Expand Down
7 changes: 7 additions & 0 deletions shim/third-party/rust/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

# Ignore Cargo-related stuff
.cargo/registry
.cargo/git
Expand Down
7 changes: 7 additions & 0 deletions shim/third-party/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

# Definitions of third-party libraries used for buck2 build of buck2.
# This file is **not** used by cargo build of buck2.
# See the <project_root>/docs/bootstrapping.md for more details.
Expand Down
7 changes: 7 additions & 0 deletions shim/third-party/rust/defs.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

def rust_library_from_crates(name):
# @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed."
native.export_file(name = name, src = "BUCK", visibility = ["PUBLIC"])
Expand Down
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/ahash/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/anyhow/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/async-trait/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/atomic/fixups.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

[[buildscript]]
[buildscript.rustc_flags]
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/axum-core/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/axum/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/backtrace/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/blake3/fixups.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []

## The various X86 platform fixups
Expand Down
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/bumpalo/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

extra_srcs = ["README.md"]
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/bzip2-sys/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/clap/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

omit_features = ["deprecated"]
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/clap_builder/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

extra_srcs = ["README.md"]
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/clap_derive/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

omit_features = ["deprecated"]
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/core-foundation-sys/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/crc32fast/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/criterion/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

cargo_env = true
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/crossbeam-epoch/fixups.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []
cargo_env = true
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/crossbeam-queue/fixups.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []
cargo_env = true
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/crossbeam-utils/fixups.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []
cargo_env = true
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/crunchy/fixups.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

[[buildscript]]
[buildscript.gen_srcs]
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/darwin-libproc-sys/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

buildscript = []
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/debugserver-types/fixups.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

extra_srcs = ["src/schema.json"]
cargo_env = true
7 changes: 7 additions & 0 deletions shim/third-party/rust/fixups/derive_more-impl/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

extra_srcs = ["README.md", "doc/*.md"]
Loading

0 comments on commit 1ae8f72

Please sign in to comment.