diff options
author | Dan Duvall <dduvall@wikimedia.org> | 2018-02-27 16:30:38 -0800 |
---|---|---|
committer | Dan Duvall <dduvall@wikimedia.org> | 2018-03-05 16:42:09 -0800 |
commit | 8fa191f03d34178d251f6705c72821d32043e71f (patch) | |
tree | 73517d8d7653cedeb107d2d9188f01128f64eec5 /build | |
parent | 47526283fea7df1734ef5b9a5da5c810bf76a29a (diff) | |
download | blubber-8fa191f03d34178d251f6705c72821d32043e71f.tar.gz |
Simplify Docker instruction compilation
Summary:
After adding a number of new instructions, it seemed there was a lot of
redundant implementation between concrete types. This refactor uses just
one concrete unexported type and a few options for determining the
output format instead of one struct type per possible Docker
instruction.
The exported `docker.Instruction` interface and signature of
`docker.NewInstruction` is unchanged with this refactor. Unit tests for
Docker instruction compilation were simplified to not make type
assertions but were otherwise left to ensure no regression.
Depends on D984
Test Plan: Run `go test ./...`.
Reviewers: thcipriani, demon, hashar, mmodell, #release-engineering-team
Reviewed By: thcipriani, #release-engineering-team
Tags: #release-engineering-team
Differential Revision: https://phabricator.wikimedia.org/D990
Diffstat (limited to 'build')
0 files changed, 0 insertions, 0 deletions