Skip to content

Conversation

@jdcasey
Copy link
Member

@jdcasey jdcasey commented Dec 6, 2021

Feat: Maintain sha1, md5, and sha256 files for maven-metadata.xml

NOTE: The tests are VERY broken currently. I haven't figured out why yet.

Feat: Maintain sha1, md5, and sha256 files for maven-metadata.xml

NOTE: The tests are VERY broken currently. I haven't figured out why yet.
@lgtm-com
Copy link

lgtm-com bot commented Dec 6, 2021

This pull request introduces 3 alerts when merging 5a59d66 into c6b8b96 - view on LGTM.com

new alerts:

  • 1 for `__eq__` not overridden when adding attributes
  • 1 for Unused local variable
  • 1 for Unused import


uploaded_files = []

def get_file_digest(path: str, hashtype: str) -> str:
Copy link
Member

Choose a reason for hiding this comment

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

We have a similar func in charon.utils.files, maybe we should re-use it by some modification.

)

if digests:
bucket.Object(full_file_path + ".sha1").put(
Copy link
Member

Choose a reason for hiding this comment

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

I think these are only needed for maven pkg(maven-metadata.xml, archetype-catalog.xml), right? So maybe a better way is extracted these logic to charon.pkgs.maven module, but not in the storage module. I'll check how to change this today.

@ligangty
Copy link
Member

ligangty commented Dec 7, 2021

Resolve the conflict in #112. And give some fix for the tests failures.
@jdcasey There is still some tests failures for deletion process, I'm still checking.

@jdcasey jdcasey closed this Dec 7, 2021
@jdcasey jdcasey deleted the archetype-catalog-and-metadata-digests branch December 7, 2021 16:57
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