pulumi/sdk/go/common/util/gitutil
Julien ff5fe13fe2
Fix incorrect caching of git auth method in error cases (#16652)
urlAuthParser.Parse caches auth methods. To avoid caching the auth
method when running into an error, we first checked that the auth method
is not nil. However we ran into a classic Go issue where a nil value of
a concrete type is assigned to a variable of an interface type, making 
it not equal to nil.

https://go.dev/doc/faq#nil_error

https://go.dev/play/p/AOSdCWd3XC1

Fixes https://github.com/pulumi/pulumi/issues/16637

---------

Co-authored-by: Thomas Gummerer <t.gummerer@gmail.com>
2024-07-16 14:53:32 +00:00
..
git.go Fix incorrect caching of git auth method in error cases (#16652) 2024-07-16 14:53:32 +00:00
git_test.go Fix incorrect caching of git auth method in error cases (#16652) 2024-07-16 14:53:32 +00:00