Skip to content

Conversation

@chasefleming
Copy link
Member

@chasefleming chasefleming commented Nov 20, 2025

Closes #???

Description


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@github-actions
Copy link

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@chasefleming chasefleming changed the title Support import aliasing in Dependency Manager Support Cadence import aliasing in Dependency Manager Nov 20, 2025
@chasefleming chasefleming added the Improvement Technical work without new features, refactoring, improving tests label Nov 20, 2025
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 76.47059% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/dependencymanager/dependencyinstaller.go 76.47% 3 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

for _, imp := range imports {
importContractName := imp.Imports[0].Identifier.Identifier

actualContractName := imp.Imports[0].Identifier.Identifier
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if imports > 0

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each address import statement imports exactly one contract, so imp.Imports always has one element. The outer loop handles multiple import statements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement Technical work without new features, refactoring, improving tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants