Skip to content

Inso CLI lint spec with .spectral.yml error #7636

Answered by jackkav
ponsakorn30214 asked this question in Help
Discussion options

You must be logged in to vote

I found a workaround, it would appear that by installing a spectral node modules near the file you want to run it is able to work.
for example I have a spec and custom lint ruleset at path /home/git/project/spec.yml and /home/git/project/.spectral.yml

cd /home/git/project
npm i @stoplight/spectral-ruleset-bundler
inso lint spec /home/git/project/spec.yml

Will run successfully because the spectral ruleset bundler is expecting internal js files to be available near the .spectral.yml location, ignoring that this dependency is packaged with inso, perhaps because it is packaged with errors, the root cause is still unclear.

Related issue: stoplightio/spectral#1956

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@jackkav
Comment options

@ponsakorn30214
Comment options

@jackkav
Comment options

@jackkav
Comment options

Answer selected by jackkav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants