hashicorp / go-getter

Package for downloading things from a string URL using a variety of protocols.
Mozilla Public License 2.0
1.65k stars 232 forks source link

How to Determinate GatAny Results #464

Closed gastraight closed 11 months ago

gastraight commented 11 months ago

Hi As GetAny accepts in general file/dir urls but handles them a bit. in different way is the a way to determine how downloaded content should be treated? I.e. should the dest or dest/url_basename be addressed?

As well as was it an arch being unpacked?

Thank you.

gastraight commented 11 months ago

P.S. For git getter as https://github.com/hashicorp/go-getter.git//testdata format is supposed to refer sub directories. So how the exact file could be located?

crw commented 11 months ago

Please see https://github.com/hashicorp/go-getter/issues/462#issuecomment-1783397409. Thanks!