8000 Vendoring: "URI contains invalid characters" · Issue #1019 · cloudposse/atmos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Vendoring: "URI contains invalid characters" #1019
Closed
@mss

Description

@mss

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 straced 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0