mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update github.com/hashicorp/hcl/v2 to v2.19.1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
3
vendor/github.com/zclconf/go-cty/cty/marks.go
generated
vendored
3
vendor/github.com/zclconf/go-cty/cty/marks.go
generated
vendored
@ -190,6 +190,9 @@ func (val Value) HasSameMarks(other Value) bool {
|
||||
// An application that never calls this method does not need to worry about
|
||||
// handling marked values.
|
||||
func (val Value) Mark(mark interface{}) Value {
|
||||
if _, ok := mark.(ValueMarks); ok {
|
||||
panic("cannot call Value.Mark with a ValueMarks value (use WithMarks instead)")
|
||||
}
|
||||
var newMarker marker
|
||||
newMarker.realV = val.v
|
||||
if mr, ok := val.v.(marker); ok {
|
||||
|
Reference in New Issue
Block a user