Skip to content

Fetching registry library fails due to improper reference to index generator #1475

@michael-valdron

Description

@michael-valdron

Which area this feature is related to?

/kind bug

Which area this bug is related to?

/area registry

What versions of software are you using?

Go project

Operating System and version: N/A

Go Pkg Version: 1.19

Bug Summary

Describe the bug:

When fetching chained dependencies for the registry library, the command fails due to the index generator dependency not pointing to a valid revision reference. This is because of replace redirection on v0.0.0 which does not work when referencing the module externally.

To Reproduce:

Run go get github.com/devfile/registry-support/registry-library@latest.

Expected behavior

Consumers should be able to successfully fetch the registry library module along with all dependencies of it.

Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable

go: github.com/devfile/registry-support/index/generator@v0.0.0: reading github.com/devfile/registry-support/index/generator/go.mod at revision index/generator/v0.0.0: unknown revision index/generator/v0.0.0

Additional context

Any workaround?

Use earlier revisions of registry library which does not have this bug.

Suggestion on how to fix the bug

Change revision ref for index generator to latest one for both dependency reference and replace reference.

Metadata

Metadata

Labels

area/registryDevfile registry for stacks and infrastructurekind/bugSomething isn't working

Type

No type

Projects

Status

Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions