wolfi-dev / wolfictl

A CLI used to work with the Wolfi OSS project
Apache License 2.0
53 stars 53 forks source link

some package names can cause issues with `wolfictl check update` #332

Open goproslowyo opened 1 year ago

goproslowyo commented 1 year ago

Description

I think wolfictl might have a bug around here (or maybe when it trims the suffix?) if the filename is like py3-ruamel.yaml.yaml.

I noticed during this CI failure. This basically causes the wrong filename (py3-ruamel.yaml instead of py3-ruamel.yaml.yaml) to get passed into os.ReadFile.

Here's a simple PoC: https://go.dev/play/p/yAUSuMaR6TQ

goproslowyo commented 1 year ago

Worked around by renaming the package and file https://github.com/wolfi-dev/os/pull/4262#discussion_r1291424099