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

Change dependecy list to arch specific dependecies #102

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

manith-arista
Copy link
Contributor

@manith-arista manith-arista commented Mar 19, 2024

Currently we support eext packages to specify a list of dependecies for the package. Some packages reqiure the dependecies only for a specific arch (since dependecies for other archs are available upstream). Hence we support arch specific dependecies for eext packages, allowed archs are 'i686', 'x86_64' and 'all'(both)

Fixes: BUG908812

aajith-arista
aajith-arista previously approved these changes Mar 21, 2024
Copy link
Collaborator

@aajith-arista aajith-arista left a comment

Choose a reason for hiding this comment

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

Pls add some changes to sanityCheck in manifest.go to make sure

  1. Keys are valid (all, three archs )
  2. If all is there no other keys are there

Indexing should take of arm too
We might no specify target for arm. So it will be empty, but if you run arch it will say aarch64/arm64.

Pls make sure test covers target unspecified and target specified(i686) cases.

manifest/manifest.go Show resolved Hide resolved
impl/mock.go Show resolved Hide resolved
impl/mock.go Show resolved Hide resolved
aajith-arista
aajith-arista previously approved these changes Mar 22, 2024
impl/mock.go Outdated Show resolved Hide resolved
impl/mock.go Outdated Show resolved Hide resolved
impl/mock.go Outdated Show resolved Hide resolved
impl/mock.go Outdated Show resolved Hide resolved
impl/setupDeps_test.go Outdated Show resolved Hide resolved
Change dependecy list to arch specific dependecies
Currently we support eext packages to specify a list of dependecies for
the package. Some packages reqiure the dependecies only for a specific
arch (since dependecies for other archs are available upstream).
Hence we support arch specific dependecies for eext packages, allowed
archs are 'i686', 'x86_64' and 'all'(both)

Added documentation and checks for dependencies
Updated the dependencies docstring with additional details for usage.
Added checks to ensure dependencies and not duplicated across archs,
and only valid arch is provided as argument.
Updated supported test cases to cover all arch dependency cases.

Fixes: BUG908812
@manith-arista manith-arista merged commit 86bb1a2 into main Apr 4, 2024
2 checks passed
@manith-arista manith-arista deleted the manith-archDeps branch April 4, 2024 07:54
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.

2 participants