Open warroyo opened 7 years ago
You're correct to point out that enaml show
operates on pivnet tiles and enaml generate
operates on gzipped releases.
To generate structs for a pivnet release, you need to rename the .pivotal to .zip, extract it, and run enaml generate
on each .tgz in the releases directory.
when trying to generate go structs for a locally downloaded pivnet release (ex.cf-1.8.8-build.1.pivotal) an error occurs (see below). this error does not occur when running
enaml show
and the command succeeds with the proper output. What seems to be happening is the show command expects thezip
format that pivnet releases are bundled in and knows to unpackage and go into thereleases
folder to go through all of the releases. however thegenerate
command is expecting a gzip archive like a bosh.io release.I tried repackaging the .pivotal release as a gzipped archive, still named cf-1.8.8-build.1.pivotal since it looks like the .pivotal is important to detemrinig a pivnet release. The
generate
command ran without any errors but did not generate any structs. This seems like the generate command is never executing the pivnet specific functions https://github.com/enaml-ops/enaml/blob/b232608251205ea0fc1e039631214a64954f7cb1/release/pivnetrelease.go#L42also when running the
show
command on the repackaged release I revieve an errorzip: not a valid zip file
which means theshow
command is properly executing the pivotal release specific code.