question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

factory devfile: should support URL from Github

See original GitHub issue

Describe the bug

Providing a devfile.yaml URL from Github to the Che factory is failling. Che is expecting a raw URL. But it is a common that user provide the Github view URL.

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  1. go to https://github.com/eclipse/che-devfile-registry/tree/master/devfiles/quarkus
  2. right click on the devfile.yaml link.
  3. copy the link address (should be https://github.com/eclipse/che-devfile-registry/blob/master/devfiles/quarkus/devfile.yaml)
  4. paste the link in the Che dashboard (add workspace, url of devfile)
  5. the dashboard is failing to load the devfile.

Expected behavior

it should detect that it is github and fetch the raw devfile automatically: https://github.com/eclipse/che-devfile-registry/raw/master/devfiles/quarkus/devfile.yaml

Screenshots

Selection_159

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
skabashnyukcommented, Feb 4, 2021

not reproduced on the latest version 7.26-snapshot. Знімок екрана 2021-02-04 о 15 37 50

1reaction
skabashnyukcommented, Feb 9, 2021

Tested with the wrong url. Reopening.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Different behavior between repo URL and devfile URL in factory
Describe the bug The behavior of factory URLs is different depending on if the URL points at e.g. a github repo versus a...
Read more >
Support Devfile format to generate a workspace #11549
A developer can generate a workspace by just calling a url: che.host/f? ... Factory flow should support k8s/OS tool in Devfile Factory flow ......
Read more >
Simplify the factory URL link #18165 - eclipse/che - GitHub
The simple proposal Mario brought, we can at least start with the factory URL with hash that supports only Repo, Devfile URL.
Read more >
The devfile registry should allow referencing external ... - GitHub
Basically all that the factory service is supporting with the url attribute. The text was updated successfully, but these errors were ...
Read more >
Failed to start workspaces using devfile spec v2.1.0 #19299
... a workspace using a factory link it fails with "Failed to resolve a devfile. ... I would like to support latest version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found