Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the backing MultiDependency for Component non-optional #1102

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

simu
Copy link
Member

@simu simu commented Feb 14, 2025

This simplifies a lot of the implementation for Component and only surfaces in a minor way in component_compile where we may need to create a fake MultiDependency if we compile a component outside a Git repo.

Split out from #1101

Checklist

  • Keep pull requests small so they can be easily reviewed.
  • Update the documentation.
  • Update tests.
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency, internal
    as they show up in the changelog
  • Link this PR to related issues.

@simu simu added the internal Internal changes which don't affect users but should appear in the changelog label Feb 14, 2025
@simu simu requested a review from a team February 14, 2025 09:27
@simu simu marked this pull request as ready for review February 14, 2025 09:28
@simu simu requested a review from a team as a code owner February 14, 2025 09:28
This simplifies a lot of the implementation for `Component` and only
surfaces in a minor way in `component_compile` where we may need to
create a fake `MultiDependency` if we compile a component outside a Git
repo.
@simu simu force-pushed the fix/component-dependency-nonoptional branch from 5c2830d to 19906ca Compare February 14, 2025 09:38
Copy link
Contributor

@HappyTetrahedron HappyTetrahedron left a comment

Choose a reason for hiding this comment

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

LGTM. Impressed with how much stuff can be deleted in the tests ^^

This should cover the `ValueError` when `target_dir` and
`self._work_dir` are None.
@simu simu force-pushed the fix/component-dependency-nonoptional branch from e6378c5 to 68e698e Compare February 14, 2025 11:00
@simu simu merged commit a0a8c8f into master Feb 14, 2025
20 checks passed
@simu simu deleted the fix/component-dependency-nonoptional branch February 14, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Internal changes which don't affect users but should appear in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants