snowplow / igluctl

A command-line tool for working with Iglu schema registries
8 stars 6 forks source link

Ensure igluctl static push works when iglu server url has a path #130

Closed lmath closed 2 years ago

lmath commented 2 years ago

Running

igluctl static push /local/path/to/schemas localhost:2000/iglu-server <iglu server api key>

where localhost:2000/iglu-server is the iglu server brought up by running the latest version of snowplow mini locally

was producing

404 not found
404 not found
404 not found
404 not found
404 not found
404 not found
404 not found

igluctl static push /local/path/to/schemas localhost:2000/iglu-server <iglu server api key> should instead push the schemas in /local/path/to/schemas to the server as expected

Turns out that where we are using withPath, if there is a path on the root url of the iglu server, that this replaces the path and wipes out the path on the root url. What is appropriate is to use addPath, see here.