Downloading a Windows package HART file from builder


#1

From the habislack, for the benefit of future users:

Question about builder api download. When downloading a linux package attaching a /download will download the hart, but for windows packages adding a /download 404s. E.g https://bldr.habitat.sh/v1/depot/pkgs/core/git/2.18.0/20180803232036/download 404s but https://bldr.habitat.sh/v1/depot/pkgs/core/git/2.18.0/20180806174821/download will download the hart.

Is there a different path for downloading windows hab packages?


#2

The user answered their own question thanks to the comment in builder-api/src/depot/server.rs

applying a target in the query param of the download fixed this: ?target=x86_64-windows