You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found this issue was caused by the following function in resolve.go:
func (c*Converter) resolveScalar(tagstring, srcstring, styleyaml_scalar_style_t) (cty.Value, error) {
if!resolvableTag(tag) {
returncty.NilVal, fmt.Errorf("unsupported tag %q", tag)
}
// Any data is accepted as a !!str or !!binary.// Otherwise, the prefix is enough of a hint about what it might be.hint:=byte('N')
ifsrc!="" {
hint=resolveTable[src[0]]
}
ifhint!=0&&tag!=yaml_STR_TAG&&tag!=yaml_BINARY_TAG {
ifstyle==yaml_SINGLE_QUOTED_SCALAR_STYLE||style==yaml_DOUBLE_QUOTED_SCALAR_STYLE {
returncty.StringVal(src), nil
}
// Handle things we can lookup in a map.>ifitem, ok:=resolveMap[src]; ok {
returnitem.value, nil
}
I understand that we use this resolveMap to convert on or On to true, but I don't think we should convert yaml keys.
The text was updated successfully, but these errors were encountered:
I've tried to decode github action yaml file:
The key
on
has been resolved astrue
.I found this issue was caused by the following function in
resolve.go
:I understand that we use this
resolveMap
to converton
orOn
totrue
, but I don't think we should convert yaml keys.The text was updated successfully, but these errors were encountered: