Azure / Azure/azure-openapi-validator

Run spectral in docker failed, since lodash has been introduced

Open
#538 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
53
Forks
57
Avg merge
1d 23h
Merged PRs (30d)
2

Description

**Describe the bug**
I use spectral with docker, but the last update introduce a deps with lodash which seem to be missing

**To Reproduce**
docker run --rm -v $(pwd):/tmp stoplight/spectral lint --ruleset "https://raw.githubusercontent.com/Azure/azure-openapi-validator/main/packages/rulesets/generated/spectral/az-common.js" "/tmp/swagger.json"

**Expected behavior**

`Error running Spectral!
Use --verbose flag to print the error stack.
Error #1: Could not load https://raw.githubusercontent.com/Azure/azure-openapi-validator/main/packages/rulesets/generated/spectral/lodash (imported by https://raw.githubusercontent.com/Azure/azure-openapi-validator/main/packages/rulesets/generated/spectral/az-common.js): Error fetching [https://raw.githubusercontent.com/Azure/azure-openapi-validator/main/packages/rulesets/generated/spectral/lodash:](https://raw.githubusercontent.com/Azure/azure-openapi-validator/main/packages/rulesets/generated/spectral/lodash) Not Found
`

**Desktop (please complete the following information):**
- OS: Docker
- Browser None
- Version latest / 6 ( https://hub.docker.com/layers/stoplight/spectral/latest/images/sha256-1d534a9f66da05c4d127ef2e498efdbd161ee7951f82092f3d90a26d208cb9f0?context=explore )

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.