Skip to content

Typo in Library util.go #520

@kim-tsao

Description

@kim-tsao

/kind bug

Which area this bug is related to?

/area library

What versions of software are you using?

Operating System:
Mac OS
Go Pkg Version:
1.16.4

Bug Summary

Describe the bug:

There's a typo in the error message: https://github.com/devfile/library/blob/bb25787c897caf982fde9c3507ac27177b406267/pkg/util/util.go#L772

fail to retrive should be updated to failed to retrieve

To Reproduce:

I have a test devfile with bad input:

parent:
  id: qwXlyOOl
  registryUrl: https://github.com/devfile/registry

and got the following message:
ERROR : ERROR verifying devfile : ./tmp/library_test/Test_Parent1.yaml : fail to retrive https://github.com/devfile/registry/devfiles/qwXlyOOl, 404: Not Found]

Expected behavior

This is the expected behaviour but we should fix the typo

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

Additional context

Any workaround?

Suggestion on how to fix the bug

Metadata

Metadata

Assignees

Labels

area/libraryCommon devfile library for interacting with devfileskind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions