aws-powertools / powertools-lambda-dotnet

Powertools is a developer toolkit to implement Serverless best practices and increase developer velocity.
https://docs.powertools.aws.dev/lambda/dotnet/
MIT No Attribution
158 stars 25 forks source link

Bug: Issue with JMESPath dependency in Idempotency on some scenarios #626

Closed hjgraca closed 2 months ago

hjgraca commented 3 months ago

Expected Behaviour

When adding a dependency on Idempotency version 1.2.1 I should not see an error when restoring the project.

Current Behaviour

error NU1101: Unable to find package AWS.Lambda.Powertools.JMESPath. 
No packages exist with this id in source(s): /usr/local/share/dotnet/library-packs, Local, nuget.org

Code snippet

<ItemGroup>
    <PackageReference Include="AWS.Lambda.Powertools.Idempotency" Version="1.2.1" />
  </ItemGroup>

Possible Solution

Remove the build target step in DIrectory.Build.targets to include JMESPath in the Idempotency project

Steps to Reproduce

Add version 1.2.1

  <ItemGroup>
    <PackageReference Include="AWS.Lambda.Powertools.Idempotency" Version="1.2.1" />
  </ItemGroup>

Powertools for AWS Lambda (.NET) version

latest

AWS Lambda function runtime

dotnet6

Debugging logs

No response

hjgraca commented 1 month ago

Release 1.13