1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/types
Doug Davis 64aac182d6 Fix processing of unset build-args during build
This reverts 26103.  26103 was trying to make it so that if someone did:
  docker build --build-arg FOO .
and FOO wasn't set as an env var then it would pick-up FOO from the
Dockerfile's ARG cmd.  However, it went too far and removed the ability
to specify a build arg w/o any value. Meaning it required the --build-arg
param to always be in the form "name=value", and not just "name".

This PR does the right fix - it allows just "name" and it'll grab the value
from the env vars if set. If "name" isn't set in the env then it still needs
to send "name" to the server so that a warning can be printed about an
unused --build-arg. And this is why buildArgs in the options is now a
*string instead of just a string - 'nil' == mentioned but no value.

Closes #29084

Signed-off-by: Doug Davis <dug@us.ibm.com>
(cherry picked from commit cdb8ea90b0)
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-12-09 14:24:00 -08:00
..
backend
blkiodev
container
events
filters Fixes ImageList to be retro-compatible with older API 2016-11-29 14:10:44 -08:00
mount
network
reference
registry
strslice
swarm Handle logging in compose to swarm 2016-12-07 16:14:20 -08:00
time
versions
volume
auth.go
client.go Fix processing of unset build-args during build 2016-12-09 14:24:00 -08:00
configs.go
error_response.go
id_response.go
image_summary.go
plugin.go plugins: container-rootfs-relative paths 2016-12-09 14:16:04 -08:00
plugin_device.go
plugin_env.go
plugin_interface_type.go
plugin_mount.go
plugin_responses.go
port.go
seccomp.go
service_update_response.go
stats.go
types.go Convert DanglingOnly to Filters for docker image prune 2016-12-07 16:08:18 -08:00
volume.go