mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
This change updates github.com/NVIDIA/go-nvlib from v0.7.1 to v0.7.2 to allow Thor systems to be detected as Tegra-based. This allows fixes automatic mode detection to work on these systems. Signed-off-by: Evan Lezar <elezar@nvidia.com>
26 lines
798 B
Go
26 lines
798 B
Go
//go:build testify_yaml_custom && !testify_yaml_fail && !testify_yaml_default
|
|
// +build testify_yaml_custom,!testify_yaml_fail,!testify_yaml_default
|
|
|
|
// Package yaml is an implementation of YAML functions that calls a pluggable implementation.
|
|
//
|
|
// This implementation is selected with the testify_yaml_custom build tag.
|
|
//
|
|
// go test -tags testify_yaml_custom
|
|
//
|
|
// This implementation can be used at build time to replace the default implementation
|
|
// to avoid linking with [gopkg.in/yaml.v3].
|
|
//
|
|
// In your test package:
|
|
//
|
|
// import assertYaml "github.com/stretchr/testify/assert/yaml"
|
|
//
|
|
// func init() {
|
|
// assertYaml.Unmarshal = func (in []byte, out interface{}) error {
|
|
// // ...
|
|
// return nil
|
|
// }
|
|
// }
|
|
package yaml
|
|
|
|
var Unmarshal func(in []byte, out interface{}) error
|