Skip to content

aws-rds: Linter doesn't find cdk-lint #20693

@l0b0

Description

@l0b0

Describe the issue

To reproduce (on NixOS 22.05):

$ git clone git@github.com:l0b0/aws-cdk.git
$ nix-shell --packages yarn
$ cd aws-cdk
$ yarn install
[…]
Done in 29.13s.
$ cd packages/@aws-cdk/aws-rds
$ yarn lint
yarn run v1.22.18
$ cdk-lint
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module './cdk-lint.js'
Require stack:
- /home/victor/dev/aws-cdk/tools/@aws-cdk/cdk-build-tools/bin/cdk-lint
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/victor/dev/aws-cdk/tools/@aws-cdk/cdk-build-tools/bin/cdk-lint:2:1)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/victor/dev/aws-cdk/tools/@aws-cdk/cdk-build-tools/bin/cdk-lint'
  ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

(The $ cdk-lint line is output from yarn lint, not a command I ran manually.)

Links

https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md#linters=

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-rdsRelated to Amazon Relational Databaseclosed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.documentationThis is a problem with documentation.needs-reproductionThis issue needs reproduction.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions