Skip to content

fix(ctf): Add support for recognizing additional CTF archive files: tar.gz, tgz, tar (#651)#882

Merged
piotrjanik merged 2 commits into
open-component-model:mainfrom
piotrjanik:fix/ctf-tar-archives
Sep 16, 2025
Merged

fix(ctf): Add support for recognizing additional CTF archive files: tar.gz, tgz, tar (#651)#882
piotrjanik merged 2 commits into
open-component-model:mainfrom
piotrjanik:fix/ctf-tar-archives

Conversation

@piotrjanik

@piotrjanik piotrjanik commented Sep 13, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

Previously, repository references ending with archive extensions (like transport-archive.tar.gz) could be misidentified as a hostname due to the presence of dots in the path. This fix ensures that archives such as tar.gz are correctly detected.

Which issue(s) this PR fixes

Fixes open-component-model/ocm-project#651

@piotrjanik piotrjanik requested a review from a team as a code owner September 13, 2025 20:19

@jakobmoellerdev jakobmoellerdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The issue issue number you are linking points to a closed PR. Maybe you were trying to cross reference something else? Would you mind double checking that please?

Comment thread cli/cmd/cmd_test.go
Comment thread cli/internal/reference/compref/compref.go Outdated
@piotrjanik

Copy link
Copy Markdown
Contributor Author

The issue issue number you are linking points to a closed PR. Maybe you were trying to cross reference something else? Would you mind double checking that please?

I meant issue, not PR. Providing the full link helped :)

@jakobmoellerdev

Copy link
Copy Markdown
Member

@piotrjanik please sign your commits so this can be merged :)

@piotrjanik piotrjanik force-pushed the fix/ctf-tar-archives branch 2 times, most recently from 70fad88 to 57a97ca Compare September 16, 2025 14:54
…ar.gz, tgz, tar (open-component-model#651)

<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

Previously, repository references ending with archive extensions (like `transport-archive.tar.gz`) could be misidentified as a hostname due to the presence of dots in the path. This fix ensures that archives such as tar.gz are correctly detected.

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

Fixes open-component-model#651

Signed-off-by: Piotr Janik <piotr.janik@sap.com>
…ar.gz, tgz, tar (open-component-model#651)

<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

Previously, repository references ending with archive extensions (like `transport-archive.tar.gz`) could be misidentified as a hostname due to the presence of dots in the path. This fix ensures that archives such as tar.gz are correctly detected.

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

Fixes open-component-model/ocm-project#651

Signed-off-by: Piotr Janik <piotr.janik@sap.com>
@piotrjanik piotrjanik merged commit e824a9f into open-component-model:main Sep 16, 2025
19 checks passed
jakobmoellerdev pushed a commit to jakobmoellerdev/open-component-model that referenced this pull request Sep 17, 2025
…ar.gz, tgz, tar (open-component-model#651) (open-component-model#882)

<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

Previously, repository references ending with archive extensions (like
`transport-archive.tar.gz`) could be misidentified as a hostname due to
the presence of dots in the path. This fix ensures that archives such as
tar.gz are correctly detected.

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. -->

Fixes open-component-model/ocm-project#651

---------

Signed-off-by: Piotr Janik <piotr.janik@sap.com>
matthiasbruns pushed a commit to matthiasbruns/open-component-model that referenced this pull request Sep 18, 2025
…ar.gz, tgz, tar (open-component-model#651) (open-component-model#882)

<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

Previously, repository references ending with archive extensions (like
`transport-archive.tar.gz`) could be misidentified as a hostname due to
the presence of dots in the path. This fix ensures that archives such as
tar.gz are correctly detected.

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. -->

Fixes open-component-model/ocm-project#651

---------

Signed-off-by: Piotr Janik <piotr.janik@sap.com>
@piotrjanik piotrjanik deleted the fix/ctf-tar-archives branch January 28, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Short Style Reference Syntax for CTF Archives in CLI

3 participants