hashicorp / go-getter

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

How to Determinate GatAny Results #464

Closed gastraight closed 1 year ago

gastraight commented 1 year 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 1 year 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 1 year ago

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