Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Internalize codegen #133

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joerocklin
Copy link
Contributor

Related to #62

Description of changes: This removes the need to separately install the codegen component. make build-codegen or make rebuild will handle preparing things. make aws-codegen (and callers) will then use the local binary.

It will also format the bindata code if it changes to preserve formatting.

Installation of go-bindata is still required. It would be nice to run this from a vendored source for consistency, maybe that can be a future effort.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

`make codegen` now builds a new version of the codegen tool before trying
to run it. The command also now looks to a binary in the code-generation
directory instead of requiring installation.

This also adds a `go fmt` command to the code generation to remove formatting
diffs from the bindata generation stage.
@tantona
Copy link
Contributor

tantona commented Nov 2, 2018

We include the changes from #136 in this PR

@joerocklin
Copy link
Contributor Author

@christopherhein Can you help me understand why this was closed?

@christopherhein
Copy link
Contributor

Sorry about thank @joerocklin thanks for calling that out. I was mistaken that this was the same as #136 but at second look you are right.

Any chance you can update the /Makefile target for rebuild to reference to call install-aws-codegen unless you feel there is a good reason to move this from an installed binary into a local package…

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants