Skip to content

packer 1.5.4 build error #8846

@IPv4v6

Description

@IPv4v6

Overview of the Issue

When trying to build packer 1.5.4 from source (go get) I'm experiencing the following errors:

# github.com/hashicorp/packer/hcl2template
go/pkg/mod/github.com/hashicorp/packer@v1.5.4/hcl2template/functions.go:37:22: undefined: stdlib.CeilFunc
go/pkg/mod/github.com/hashicorp/packer@v1.5.4/hcl2template/functions.go:38:22: undefined: stdlib.ChompFunc
go/pkg/mod/github.com/hashicorp/packer@v1.5.4/hcl2template/functions.go:39:22: undefined: stdlib.ChunklistFunc
go/pkg/mod/github.com/hashicorp/packer@v1.5.4/hcl2template/functions.go:45:22: undefined: stdlib.CoalesceListFunc
go/pkg/mod/github.com/hashicorp/packer@v1.5.4/hcl2template/functions.go:46:22: undefined: stdlib.CompactFunc
go/pkg/mod/github.com/hashicorp/packer@v1.5.4/hcl2template/functions.go:48:22: undefined: stdlib.ContainsFunc
go/pkg/mod/github.com/hashicorp/packer@v1.5.4/hcl2template/functions.go:52:22: undefined: stdlib.DistinctFunc
go/pkg/mod/github.com/hashicorp/packer@v1.5.4/hcl2template/functions.go:53:22: undefined: stdlib.ElementFunc
go/pkg/mod/github.com/hashicorp/packer@v1.5.4/hcl2template/functions.go:57:22: undefined: stdlib.FlattenFunc
go/pkg/mod/github.com/hashicorp/packer@v1.5.4/hcl2template/functions.go:58:22: undefined: stdlib.FloorFunc
go/pkg/mod/github.com/hashicorp/packer@v1.5.4/hcl2template/functions.go:58:22: too many errors

Reproduction Steps

$ go version
go version go1.13.8 linux/amd64

export CGO_ENABLED=0
export GO111MODULE=on
go get -v -a -ldflags '-extldflags "-static"' github.com/hashicorp/packer@v1.5.4

Packer version

1.5.4

Operating system and Environment details

Linux amd64
Go version 1.13.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildRelating to aspects of compilation or continuous integrationcoreCore components of Packer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions