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.

Add more flexibility into devfile project source - checkout branch, commit ID etc

See original GitHub issue

Description

Factories have a variety of options to contol projects sources more precisely: branch, startPoint, commitId, fetch, branchMerge, keepDir

In this issue, we want to add support for branch and commitId into the devfile as new fields:

projects:
  - name: petclinic
    source:
      type: git
      location: 'git@github.com:spring-projects/spring-petclinic.git'
      branch: my-branch

or

projects:
  - name: petclinic
    source:
      type: git
      location: 'git@github.com:spring-projects/spring-petclinic.git'
      commitId: 42dfsa234

respectively.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:26 (26 by maintainers)

github_iconTop GitHub Comments

2reactions
metloscommented, Mar 22, 2019

refspec then?

1reaction
l0rdcommented, Mar 22, 2019

I don’t understand why you want to use checkout. The whole source section of a devfile is in some way a git pull section (we could call it source-pull) so if you want to adhere to git the attributes of the devfile source section should match the options of git pull (i.e. repository + refspec + options):

NAME
       git-pull - Fetch from and integrate with another repository or a local branch

SYNOPSIS
       git pull [options] [<repository> [<refspec>...]]
Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 3. Developer workspaces - Red Hat Customer Portal
Specifying multiple projects in a devfile ... Project-source type: git; 3.2.4.1.2. ... startPoint is the general value for tag , commitId , and...
Read more >
Introduction to Devfile - GitHub Pages
To get more functional workspace, the following parts can be added: ... The simplest way to use devfile is to have it deployed...
Read more >
What's New in Space in 2022 - JetBrains
To add even more flexibility in setting up access protocols, you can create a Custom role and manually assign teams or individual users...
Read more >
git - How to create development branch from master on GitHub
Changing branches. You shouldn't commit anything directly to the master branch. Instead do all your work on the develop branch and then merge ......
Read more >
2015-June.txt - CMake
Dependencies added to an :ref:`imported target <Imported Targets>` or an :ref:`interface library <Interface Libraries>` are followed ...
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