func (m *Manifest) AddDependency(imageName types.ACIdentifier, imageId *types.Hash, labels types.Labels, size uint) error {
	removeDep(imageName, m.manifest)
	m.manifest.Dependencies = append(m.manifest.Dependencies,
		types.Dependency{
			ImageName: imageName,
			ImageID:   imageId,
			Labels:    labels,
			Size:      size,
		})
	return m.save()
}
AddDependency will add a dependency with the given name, id, labels, and size
to the untarred ACI stored at a.CurrentImagePath. If the dependency already
exists its fields will be updated to the new values.
package appc
import (
	"github.com/appc/spec/schema"
	"github.com/appc/spec/schema/types"
)