cloudposse / cloudposse/atmos

Support `file://` paths in `component.yml:spec.source.uri`

Open
#487 1 comment 2 reactions 0 assignees View on GitHub
bug enhancement
Dominant language
Go
Stars
1.4k
Forks
175
Avg merge
2d 3h
Merged PRs (30d)
134

Description

### Describe the Bug

Specs for component.yml say it supports anything from HashiCorp/go-getter but I am unable to use a local path.

```yml
spec:
source:
uri: ./
```

```bash
kevin@Kevins-Laptop aurora-postgres % atmos vendor pull -c spacelift
Pulling sources for the component 'spacelift' from 'file:///Users/kevin/code/sts-devops/components/github-repositories' into '/Users/kevin/code/sts-devops/components/spacelift'

error downloading 'file:///Users/kevin/code/sts-devops/components/github-repositories': destination exists and is not a symlink
```

### Expected Behavior

I would like to use a local file path because we are using Atmos features like mixin but we are not using a remotely hosted module/component.

### Steps to Reproduce

```yml
spec:
source:
uri: ./
```

### Screenshots

_No response_

### Environment

_No response_

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.