Skip to content

Conversation

@roytev
Copy link
Contributor

@roytev roytev commented Mar 28, 2024

fixes #139

@roytev
Copy link
Contributor Author

roytev commented Mar 28, 2024

Hi @allburov can you please take a look? another fix :)


artifact["path"], docker_tag = artifact["path"].rsplit("/", 1)
artifact["name"] = docker_tag
artifact["path"] = artifact["properties"]["docker.repoName"]
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure how it's saved nowadays, and that all properties exists on all docker images - could you add a false back instead?
The logic would be this one - if rsplit returns two elements - we use old logic, if not - new one.
And please add two tests for that as well, so we know that it works as it used to with old artifacts too

@allburov allburov added the stale label Aug 15, 2024
Copy link
Member

@allburov allburov left a comment

Choose a reason for hiding this comment

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

I'm not sure how it's saved nowadays, and that all properties exists on all docker images - could you add a false back instead?
The logic would be this one - if rsplit returns two elements - we use old logic, if not - new one.
And please add two tests for that as well, so we know that it works as it used to with old artifacts too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

manifest_to_docker_images fails as path is not splittable

2 participants