Skip to content

Commit

Permalink
Merge pull request #74 from hashicorp/nodyhub/depricate-option-allow-…
Browse files Browse the repository at this point in the history
…symlink-target

Deprecate unused pack/unpack option `AllowSymlinkTarget`
  • Loading branch information
NodyHub authored Dec 4, 2024
2 parents 82d53ea + a6204cf commit 53c172a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion slug.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ func DereferenceSymlinks() PackerOption {
// be expressly permitted, whereas they are forbidden by default. Exercise
// caution when using this option. A symlink matches path if its target
// resolves to path exactly, or if path is a parent directory of target.
//
// Deprecated: This option is deprecated and will be removed in a future
// release.
func AllowSymlinkTarget(path string) PackerOption {
return func(p *Packer) error {
p.allowSymlinkTargets = append(p.allowSymlinkTargets, path)
Expand All @@ -87,7 +90,7 @@ func AllowSymlinkTarget(path string) PackerOption {
type Packer struct {
dereference bool
applyTerraformIgnore bool
allowSymlinkTargets []string
allowSymlinkTargets []string // Deprecated
}

// NewPacker is a constructor for Packer.
Expand Down

0 comments on commit 53c172a

Please sign in to comment.