package
1.12.0
Repository: https://github.com/hashicorp/packer.git
Documentation: pkg.go.dev

# Packages

# Functions

BinaryName is the raw name of the plugin binary to produce It's expected to be in the "mini-plugin_<version>[-<prerelease>][+<metadata>]" format.
BuildTestPacker builds a new Packer binary based on the current state of the repository.
CopyFile essentially replicates the `cp` command, for a file only.
ExpectedInstalledName is the expected full name of the plugin once installed.
LDFlags compiles the ldflags for the plugin to compile based on the information provided.
ManualPluginInstall emulates how Packer installs plugins with `packer plugins install` This is used for some tests if we want to install a plugin that cannot be installed through the normal commands (typically because Packer rejects it).
Ready processes a series of CompilationResults, as returned by CompilePlugin If any of the jobs requested failed, the test will fail also.
SHA256Sum computes the SHA256 digest for an input file The digest is returned as a hexstring.
TempWorkdir creates a working directory for a Packer test with the list of files given as input.
UseDependency invokes go get and go mod tidy to update a package required by the plugin, and use it to build the plugin with that change.
WriteFile writes `content` to a file `dest` The default permissions of that file is 0644.

# Constants

# Variables

CompilationJobs keeps a queue of compilation jobs for plugins This approach allows us to avoid conflicts between compilation jobs.

# Structs

# Type aliases

BuildCustomisation is a function that allows you to change things on a plugin's local files, with a way to rollback those changes after the fact.