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

cachi2: generate remote-source.json #2113

Conversation

MartinBasti
Copy link
Contributor

Cachi2 doesn't provide remote-source.json but for backward compatibility OSBS must provide it.

STONEBLD-2585

Maintainers will complete the following section

  • Commit messages are descriptive enough
  • Code coverage from testing does not decrease and new code is covered
  • Python type annotations added to new code
  • JSON/YAML configuration changes are updated in the relevant schema
  • Changes to metadata also update the documentation for the metadata
  • Pull request has a link to an osbs-docs PR for user documentation updates
  • New feature can be disabled from a configuration file

atomic_reactor/utils/cachi2.py Outdated Show resolved Hide resolved
atomic_reactor/utils/cachi2.py Outdated Show resolved Hide resolved
atomic_reactor/utils/cachi2.py Outdated Show resolved Hide resolved
atomic_reactor/utils/cachi2.py Outdated Show resolved Hide resolved
"replaces": None, # it's always None, replacements aren't supported by cachi2
"type": heuristic_type,
"version": version,
# "dev": True # TODO
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@chmeliik can we somehow determine this?

Copy link
Contributor

@chmeliik chmeliik Aug 21, 2024

Choose a reason for hiding this comment

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

For npm packages (and maybe yarn in the future) yes, from the cdx:npm:package:development property

For others no

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added for NPM

@MartinBasti MartinBasti force-pushed the cachi2-generate-request.json branch 3 times, most recently from ba61dea to 20da732 Compare August 26, 2024 13:03
Cachi2 doesn't provide remote-source.json but for backward compatibility
OSBS must provide it.

STONEBLD-2585

Signed-off-by: Martin Basti <[email protected]>
@MartinBasti MartinBasti marked this pull request as ready for review August 26, 2024 13:13
@mkosiarc
Copy link
Contributor

LGTM, in ideal world we could use more abstraction by exporting some functionality to individual helper functions so they could be read and understood better (for example, the type matching or version finding). But I am not expecting any change here.

@mkosiarc
Copy link
Contributor

I appreciate the comments, without them I would be completely lost.

@MartinBasti MartinBasti merged commit 7870665 into containerbuildsystem:feature_cachi2 Aug 27, 2024
14 checks passed
@MartinBasti MartinBasti deleted the cachi2-generate-request.json branch August 27, 2024 10:27
@MartinBasti MartinBasti restored the cachi2-generate-request.json branch October 18, 2024 09:32
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.

3 participants