Aws-cdk: `cdk context --reset <number>` does not work

Created on 24 Jun 2019  路  4Comments  路  Source: aws/aws-cdk

  • I'm submitting a ...

    • [x] :beetle: bug report
  • What is the current behavior?
    Running cdk context outputs a table with indices for the current context entries. On the bottom of the output there's a text Run cdk context --reset KEY_OR_NUMBER to remove a context key. It will be refreshed on the next CDK synthesis run.. However, running cdk context --reset 1 will error with:

    No context key with number: 1
    
  • What is the expected behavior?
    Resetting a context entry works when passed a number.

  • Please tell us about your environment:

    • CDK CLI Version: 0.35.0
  • Other information
    I debugged this a bit and it seems that regardless of the amount of context entries, the index to key mapping will _always_ be [[1, 'bags']]; I'm guessing the context is now wrapped in a distinct Context structure which the reset functionality does not take into account.

bug efformedium in-progress p2 packagtools

Most helpful comment

still true as of version CDK CLI Version: 1.44.0

All 4 comments

still true as of version CDK CLI Version: 1.44.0

I have just come across this bug using 1.54.0.

鈿狅笍COMMENT VISIBILITY WARNING鈿狅笍

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

鈿狅笍COMMENT VISIBILITY WARNING鈿狅笍

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Was this page helpful?
0 / 5 - 0 ratings