what
- Fix
atmos vendor pull
command
why
- The function
os.IsNotExist
has probably changed in some latestGo
versions - After calling
os.Stat
, don't check for "path does not exist" errors usingos.IsNotExist
, instead check for all errors - This fixes the error:
atmos vendor pull -c acm
Pulling sources for the component 'acm' from
'/localhost/infra/components/terraform/acm/github.com/cloudposse/terraform-aws-components.git/modules/acm?ref=1.86.0'
and writing to '/localhost/infra/components/terraform/acm'
error downloading 'file:///localhost/infra/components/terraform/acm/github.com/cloudposse/terraform-aws-components.git/modules/acm?ref=1.86.0':
source path error: stat /localhost/infra/components/terraform/acm/github.com/cloudposse/terraform-aws-components.git/modules/acm: no such file or directory