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

Proper class hierarchy for Dependency #1974

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Conversation

plajjan
Copy link
Contributor

@plajjan plajjan commented Nov 6, 2024

We have to be able to separate the base type from the type for our pkg dependencies, so renamed the latter to PkgDependency.

Previously we got an error when downloading zig deps since in the fetch code we would check if it's a pkg dependency or zig dependency and then delete from the corresponding list of outstanding downloads, but an isinstance check on the pkg Dependency also matched the base type of ZigDependency, and so we would try to delete it from the wrong dict and get an error.

Fixes #1975

We have to be able to separate the base type from the type for our pkg
dependencies, so renamed the latter to PkgDependency.

Previously we got an error when downloading zig deps since in the fetch
code we would check if it's a pkg dependency or zig dependency and then
delete from the corresponding list of outstanding downloads, but an
isinstance check on the pkg Dependency also matched the base type of
ZigDependency, and so we would try to delete it from the wrong dict and
get an error.
@plajjan plajjan merged commit ec2443b into main Nov 6, 2024
26 of 27 checks passed
@plajjan plajjan deleted the separate-base-dep-from-pkg branch November 6, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in CI build of acton-snappy, Unhandled exception in actor: acton.ZigFetchDeps[-67]]:
1 participant