Forum Discussion

Nghia's avatar
Nghia
Icon for Helper I rankHelper I
2 years ago
Solved

Assistance Required: Git Not Installed on Runtime 1.2 for Code Cloning from GitHub

Good morning,

I am encountering an issue while attempting to clone my repository from GitHub using a newer runtime environment. I want to provide some context and request assistance to resolve this matter.

Previously, I have been working with runtime version 1.1, which has Git installed by default, allowing me to clone my code repositories without any issues. However, I recently switched to runtime version 1.2 to take advantage of several improvements that are critical for my project. It appears that Git is not pre-installed in this environment, which has brought my work to a standstill since I am unable to clone my code repository.

Could you please guide me on how to install Git on runtime 1.2, or is there an alternative solution that I can pursue to clone my GitHub repository using this newer runtime? Any assistance or insights into this issue would be greatly appreciated.

Thank you for your time and support.

Best regards,

Nghia

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Can you check your "Workspace settings" and "Premium or License" mode?

  • Nghia's avatar
    Nghia
    2 years ago

    My Workspace settings/Premium/License Mode= "Trail".

     

     

  • Nghia's avatar
    Nghia
    2 years ago

    1. I found that I can go to Libary management >  Feed libraries > Add from .yml > select update_env.yml > wait 2 minutes > Done.

    2. In the notebook, I have git working

    Thank you very much.

     

15 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Nghia ,

    Thanks for using Fabric Community.

    At this time, we are reaching out to the internal team to get some help on this. We will update you once we hear back from them.
    Appreciate your patience.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Nghia ,
      Could you please explain why are you trying to use GIT in notebooks? What is the content that you want to include in GIT?

      Thanks.

    • guilhermemendes's avatar
      guilhermemendes
      New Member

      Hi Anonymous 

       

      Any updates on this topic ?

      Thanks in advance 🙂

  • Hi Anonymous.

     

    I was using dbt to build our DWH. I have already written an article about that: Link

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Nghia ,
      I have received an update from the internal team. 

      Please refer this link for the official Git integration. LINK1

      Git cmd is not a official supported scenario. Runtime 1.2 does not have git cmd, as it's based on Mariner - is a very streamlined/lightweight Linux OS and it does not contain the plethora of packages that were in Ubuntu (and runtime 1.1).

      You can install git cmd thru conda as well. Here you can find the details about our versioning LINK2

       

      We can bring git cmd back to Runtime 1.2 . We can certainly keep an eye on it for upvote.
      Appreciate if you could share the feedback on our feedback link , which would be open for the user community to upvote & comment on. This allows our product teams to effectively prioritize your request against our existing feature backlog and gives insight into the potential impact of implementing the suggested feature.
      Feedback Link : Home (microsoft.com)

       

      Hope this helps. Please let us know if you have any further questions.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Nghia ,
        As another workaround, you can leverage git. Repo library in python to clone the repo 
        Link1

  • Anonymous's avatar
    Anonymous
    Not applicable

    Updated: The following link has related info

    Create, configure, and use an environment in Microsoft Fabric - Microsoft Fabric | Microsoft Learn

     

    Thanks for using Fabric Community.

     

    Fabric 1.2 is using new runtime. Until the runtime includes git, please use the following workaround.

     

    1) Create new YAML file with following content. Name this file as "update_env.yml"

     

    name: Fabric1.2_GitWorkaround
    channels:
      - conda-forge
      - defaults
    dependencies:
      - git

     

    2) Create new environment from Data Science or Data Engineering

     

     

    Name the environment something like "Fabric1.2WithGit".

     

    3) In the new "Fabric1.2WithGit", under "public libraries", select "add from .yml"

     

    4) Import "update_env.yml" file created in step 1.

     

    5) Select the public library "git", click "Save" and then "Publish". Please be patient, it will take few min to create the environment. Ensure the environment is published successfully (notification will be delivered).

     

    6) Under the notebook, select "Fabric1.2WithGit", you will have git working

     

     

    Hope it helps.

    • Nghia's avatar
      Nghia
      Icon for Helper I rankHelper I

      I am writing to seek assistance regarding the use of the Environment artifact on the Fabric platform, which, according to my understanding, is essential for integrating Git into my workflow as per the instructions provided in your recent communication.

      Unfortunately, it appears that the Environment artifact is not yet available or accessible in my current user account (Fabric Workspace).

       

      This limitation is impacting my ability to follow the provided workaround for using Git with Fabric 1.2.

      I kindly request your guidance or assistance in resolving this matter. Specifically, I would like to inquire:

      1. Access to the Environment artifact: Is it possible to enable the Environment artifact for my account? If this artifact is restricted, could I request access based on my current project requirements?

      2. Alternative Solutions: In the event that immediate access to the Environment artifact is not feasible, could you suggest any alternative solutions or workarounds that would allow me to use Git within the Fabric platform?

      3. Timeline for artifact Availability: If the artifact is planned to be rolled out to all users soon, could you provide an estimated timeline for when it might become available to me?

      Your assistance in this matter is greatly appreciated, as it will significantly impact the efficiency and effectiveness of my ongoing projects. I understand that platform updates and artifact rollouts can be complex, and I am willing to explore any interim solutions you might suggest.

      Thank you for your attention to this request. I look forward to your prompt response and am available for any further information or clarification that might be needed.

      PS: Data Factory Amount, Apache Airflow and Change Data Capture seem amazing

      • Anonymous's avatar
        Anonymous
        Not applicable

        Can you check your "Workspace settings" and "Premium or License" mode?