From 95b0600f4fb21fae62b48790daa1c79c3bb1a17e Mon Sep 17 00:00:00 2001 From: Jarrett Tierney Date: Thu, 12 Dec 2024 10:33:48 -0800 Subject: [PATCH 1/3] sources: add empty file to placate twoliter --- sources/README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 sources/README.md diff --git a/sources/README.md b/sources/README.md new file mode 100644 index 00000000..d5735ee6 --- /dev/null +++ b/sources/README.md @@ -0,0 +1,2 @@ +This is a temporary workaround for twoliter who currently expects a sources +directory to exist in order for the docker volume mounts to work in buildkit From e5c654a9f80117b6cb5513a6b55d03f5300ac035 Mon Sep 17 00:00:00 2001 From: Jarrett Tierney Date: Thu, 12 Dec 2024 10:42:30 -0800 Subject: [PATCH 2/3] makefile: remove unnecessary go module definitions --- Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Makefile b/Makefile index db74ad8e..7862c68a 100644 --- a/Makefile +++ b/Makefile @@ -19,8 +19,6 @@ else endif -export GO_MODULES = ecs-gpu-init host-ctr - all: build prep: From 2c213fa14b821c4a4be8452508b254fcc11207e2 Mon Sep 17 00:00:00 2001 From: Jarrett Tierney Date: Thu, 12 Dec 2024 10:48:09 -0800 Subject: [PATCH 3/3] sources: add empty lib to placate license checker --- Cargo.toml | 1 + sources/Cargo.lock | 7 ++++++ sources/Cargo.toml | 6 +++++ sources/deny.toml | 59 ++++++++++++++++++++++++++++++++++++++++++++++ sources/src/lib.rs | 1 + 5 files changed, 74 insertions(+) create mode 100644 sources/Cargo.lock create mode 100644 sources/Cargo.toml create mode 100644 sources/deny.toml create mode 100644 sources/src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index 07aa5f93..8dcbbd75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,3 +14,4 @@ members = [ "packages/libkcapi", "packages/shim", ] +exclude = ["sources"] diff --git a/sources/Cargo.lock b/sources/Cargo.lock new file mode 100644 index 00000000..4be6f6a6 --- /dev/null +++ b/sources/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "empty-lib" +version = "0.1.0" diff --git a/sources/Cargo.toml b/sources/Cargo.toml new file mode 100644 index 00000000..067bdc91 --- /dev/null +++ b/sources/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "empty-lib" +version = "0.1.0" +publish = false +edition = "2021" +license = "Apache-2.0 OR MIT" diff --git a/sources/deny.toml b/sources/deny.toml new file mode 100644 index 00000000..456bccd9 --- /dev/null +++ b/sources/deny.toml @@ -0,0 +1,59 @@ +[licenses] +version = 2 + +# We want really high confidence when inferring licenses from text +confidence-threshold = 0.93 + +# Commented license types are allowed but not currently used +allow = [ + "Apache-2.0", + # "BSD-2-Clause", + "BSD-3-Clause", + "BSL-1.0", + # "CC0-1.0", + "ISC", + "MIT", + "OpenSSL", + "Unlicense", + "Zlib", + "MPL-2.0", +] + +exceptions = [ + +] + +[bans] +# Deny multiple versions or wildcard dependencies. +multiple-versions = "deny" +wildcards = "deny" + +deny = [] + +skip = [ + +] + +skip-tree = [ + +] + +[bans.workspace-dependencies] +duplicates = "deny" +include-path-dependencies = true +unused = "deny" + +[advisories] +# generational-arena is currently unmaintained. +ignore = [ + "RUSTSEC-2024-0014", +] + +[sources] +# Deny crates from unknown registries or git repositories. +unknown-registry = "deny" +unknown-git = "deny" + +allow-git = [ + +] diff --git a/sources/src/lib.rs b/sources/src/lib.rs new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/sources/src/lib.rs @@ -0,0 +1 @@ +