release: add empty embed.FS for release files

This ensures that `go mod vendor` includes these files, which are needed
for client builds run in corp.

Updates tailscale/corp#13775

Signed-off-by: Will Norris <will@tailscale.com>
This commit is contained in:
Will Norris 2023-08-23 09:42:48 -07:00 committed by Will Norris
parent 836f932ead
commit 09068f6c16
1 changed files with 15 additions and 0 deletions

15
release/release.go Normal file
View File

@ -0,0 +1,15 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
// Package release provides functionality for building client releases.
package release
import "embed"
// This contains all files in the release directory,
// notably the files needed for deb, rpm, and similar packages.
// Because we assign this to the blank identifier, it does not actually embed the files.
// However, this does cause `go mod vendor` to include the files when vendoring the package.
//
//go:embed *
var _ embed.FS