Skip to content

Fails when devcontainer-feature.json contains comments #75

@snebjorn

Description

@snebjorn

devcontainers/action@v1 fails when devcontainer-feature.json contains comments.

SyntaxError: Unexpected token / in JSON at position 274
    at JSON.parse (<anonymous>)
    at packageCollection (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/collectionCommonUtils/packageCommandImpl.js:[17](https://github.com/snebjorn/devcontainer-feature/actions/runs/3211796200/jobs/5250216647#step:3:18)7:35)
    at async packageFeatureCollection (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/featuresCLI/packageCommandImpl.js:49:12)
    at async doFeaturesPackageCommand (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/featuresCLI/packageCommandImpl.js:26:26)
    at async featuresPublish (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/featuresCLI/publish.js:72:22)
    at async /usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/featuresCLI/publish.js:45:[18](https://github.com/snebjorn/devcontainer-feature/actions/runs/3211796200/jobs/5250216647#step:3:19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions