awslabs / diagram-as-code

Diagram-as-code for AWS architecture.
Apache License 2.0
406 stars 23 forks source link

Did not work on Windows #18

Closed ugwis closed 3 months ago

ugwis commented 3 months ago
C:\Users\ugwis>awsdac -v vpc-natgw.yaml
time="2024-03-25T13:56:47+09:00" level=info msg="input file: vpc-natgw.yaml\n"
time="2024-03-25T13:56:47+09:00" level=info msg="Fetch definition file from URL: https://raw.githubusercontent.com/awslabs/diagram-as-code/main/definitions/definition-for-aws-icons-light.yaml\n"
time="2024-03-25T13:56:47+09:00" level=fatal msg="open C:\\Users\\ugwis\\.cache\\awsdac\\850960c5c172c277f880286d0349c39c-definition-for-aws-icons-light.yaml: The system cannot find the path specified."
ugwis commented 3 months ago

path library did not work on windows. https://pkg.go.dev/path

This package does not deal with Windows paths with drive letters or backslashes; to manipulate operating system paths, use the path/filepath package.

Use the path/filepath. Fixed #24