Skip to content

Commit fd1552d

Browse files
committed
Add "Copyright The Lima Authors" boilterplate
The boilerplate is added for Go files, shell scripts, and Makefiles. https://github.com/containerd/ltag is used for validating the boilerplates. - hack/ltag: ltag templates - .github/workflows/test.yml: ltag is executed for validation Signed-off-by: Akihiro Suda <[email protected]>
1 parent d1f353a commit fd1552d

File tree

280 files changed

+868
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+868
-0
lines changed

Diff for: .github/workflows/test.yml

+6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ jobs:
6666
- name: Check licenses
6767
# the allow list corresponds to https://github.com/cncf/foundation/blob/e5db022a0009f4db52b89d9875640cf3137153fe/allowed-third-party-license-policy.md
6868
run: go-licenses check --include_tests ./... --allowed_licenses=Apache-2.0,BSD-2-Clause,BSD-2-Clause-FreeBSD,BSD-3-Clause,MIT,ISC,Python-2.0,PostgreSQL,X11,Zlib
69+
- name: Install ltag
70+
# The GitHub repo has been moved from kunalkushwaha/ltag to containerd/ltag,
71+
# but the Go module name is not changed yet: https://github.com/containerd/ltag/issues/17
72+
run: go install github.com/kunalkushwaha/[email protected]
73+
- name: Check license boilerplates
74+
run: ltag -t ./hack/ltag --check -v
6975

7076
security:
7177
name: "Vulncheck"

Diff for: Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-FileCopyrightText: Copyright The Lima Authors
2+
# SPDX-License-Identifier: Apache-2.0
13
# Files are installed under $(DESTDIR)/$(PREFIX)
24
PREFIX ?= /usr/local
35
DEST := $(shell echo "$(DESTDIR)/$(PREFIX)" | sed 's:///*:/:g; s://*$$::')

Diff for: cmd/lima

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
2+
3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
26
set -eu
37

48
# Environment Variables

Diff for: cmd/lima-guestagent/daemon_linux.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/lima-guestagent/install_systemd_linux.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/lima-guestagent/main_linux.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/completion.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/copy.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/debug.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/delete.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/disk.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/edit.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/editflags/editflags.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package editflags
25

36
import (

Diff for: cmd/limactl/editflags/editflags_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package editflags
25

36
import (

Diff for: cmd/limactl/factory-reset.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/gendoc.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/genschema.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/hostagent.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/info.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/list.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/main.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/protect.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/prune.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/shell.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/show-ssh.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/snapshot.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/start-at-login.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/start.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/stop.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/sudoers.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/template.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/tunnel.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/unprotect.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: cmd/limactl/usernet.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package main
25

36
import (

Diff for: hack/brew-install-version.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/bash
2+
3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
26
# This script only works for formulas in the homebrew-core.
37
# It assumes the homebrew-core has been checked out into ./homebrew-core.
48
# It only needs commit messages, so the checkout can be filtered with tree:0.

Diff for: hack/cache-common-inc.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
36
# print the error message and exit with status 1
47
function error_exit() {
58
echo "Error: $*" >&2

Diff for: hack/calculate-cache.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env bash
2+
3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
26
# This script calculates the expected content size, actual cached size, and cache-keys used in caching method before and after
37
# implementation in https://github.com/lima-vm/lima/pull/2508
48
#

Diff for: hack/debug-cache.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/bash
2+
3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
26
set -eu -o pipefail
37
cache_dir="${HOME}/Library/Caches"
48
if [ "$(uname -s)" != "Darwin" ]; then

Diff for: hack/fix-qemu-signature.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
2+
3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
26
# This script fixes the signature of QEMU binary with the "com.apple.security.hypervisor" entitlement.
37
#
48
# A workaround for "QEMU (homebrew) is broken on Intel: `[hostagent] Driver stopped due to error: "signal: abort trap"` ..."

Diff for: hack/inject-cmdline-to-template.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env bash
2+
3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
26
#
37
# This script does
48
# 1. detect arch from template if not provided

Diff for: hack/ltag/bash.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-FileCopyrightText: Copyright The Lima Authors
2+
# SPDX-License-Identifier: Apache-2.0

Diff for: hack/ltag/dockerfile.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-FileCopyrightText: Copyright The Lima Authors
2+
# SPDX-License-Identifier: Apache-2.0

Diff for: hack/ltag/go.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// SPDX-FileCopyrightText: Copyright The Lima Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+

Diff for: hack/ltag/makefile.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-FileCopyrightText: Copyright The Lima Authors
2+
# SPDX-License-Identifier: Apache-2.0

Diff for: hack/oss-fuzz-build.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/bash -eu
2+
3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
26
# This script is used by OSS-Fuzz to build and run Limas fuzz tests continuously.
37
# Limas OSS-Fuzz integration can be found here: https://github.com/google/oss-fuzz/tree/master/projects/lima
48
# Modify https://github.com/google/oss-fuzz/blob/master/projects/lima/project.yaml for access management to Limas OSS-Fuzz crashes.

Diff for: hack/test-colima.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/bash
2+
3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
26
set -eux -o pipefail
37

48
colima start

Diff for: hack/test-mount-home.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env bash
2+
3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
26
set -eu -o pipefail
37

48
scriptdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

Diff for: hack/test-selinux.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
36
set -eu -o pipefail
47

58
scriptdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

Diff for: hack/test-templates.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env bash
2+
3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
26
set -eu -o pipefail
37

48
scriptdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

Diff for: hack/test-upgrade.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env bash
2+
3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
26
set -eu -o pipefail
37

48
scriptdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

Diff for: hack/toolexec-for-codesign.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh
22

3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
36
# This script is used to wrap the compiler and linker commands in the build
47
# process. It captures the output of the command and logs it to a file.
58
# The script's primary purpose is codesigning the output of the linker command

Diff for: hack/update-template-almalinux.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
36
set -eu -o pipefail
47

58
# Functions in this script assume error handling with 'set -e'.

Diff for: hack/update-template-alpine.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# SPDX-FileCopyrightText: Copyright The Lima Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
36
set -eu -o pipefail
47

58
# Functions in this script assume error handling with 'set -e'.

0 commit comments

Comments
 (0)