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
Importer.AppendSearchFromEnv() splits the value of an environment variable using os.SplitList which uses os.ListSeparator as the separator rune. This makes it impossible to have that rune as a character in a path element. On Unix-like OSes, ListSeparator is a colon which prevents having a netpath element with a port number, or an IPv6 address.
Rather than using SplitList, do the split ourselves and allow the ListSeparator to be escaped with a backslash.
We'll still keep netpaths (double-slash for https) so you don't always have to escape the colon in the URL you would otherwise have to, but at least this will now allow ports.
The text was updated successfully, but these errors were encountered:
Importer.AppendSearchFromEnv()
splits the value of an environment variable usingos.SplitList
which usesos.ListSeparator
as the separator rune. This makes it impossible to have that rune as a character in a path element. On Unix-like OSes,ListSeparator
is a colon which prevents having a netpath element with a port number, or an IPv6 address.Rather than using
SplitList
, do the split ourselves and allow theListSeparator
to be escaped with a backslash.We'll still keep netpaths (double-slash for https) so you don't always have to escape the colon in the URL you would otherwise have to, but at least this will now allow ports.
The text was updated successfully, but these errors were encountered: