Closed
Description
Describe the Bug
We are currently running v1.105.0 and want to update to the latest version. v1.158.0 is completely broken (we'll open a separate ticket for that) so we tried v1.157.0 (and a few versions before that).
And now our vendoring is broken:
~/.cache/tenv/Atmos/1.157.0/atmos vendor pull
Vendoring from 'vendor'
URI contains invalid characters
The problem is that we use an ampersand in our Git URLs for shallow clones, eg.:
- component: mixins/context/v2.0
version: v2.21.0
source: git::https://git.example.com/scm/xxx/atmos-components.git//mixins/context?depth=1&ref={{.Version}}
excluded_paths:
- '**/README.md'
tags:
- mixins
- mixins/context
targets:
- components/terraform/{{.Component}}
When I do a sed -i -e 's/depth=1&//' vendor/*.yaml
vendoring works again.
Expected Behavior
Vendoring is not broken.
Steps to Reproduce
Create a vendor config with an ampersand in the URL.
Screenshots
No response
Environment
- OS: Linux (we tried Ubuntu, RHEL, Arch)
- Version: 1.157.0
Additional Context
One odd thing: We strace
d the process and it looks like Atmos first tries to look in directory /home/me/atmos/git::https://git.example.com/scm/xxx/atmos-components.git//mixins/context?depth=1&ref=v2.21.0
(ie. it appends the URL to the directory).