Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sushiat
Frequent Visitor

Environment public library not restored from GIT

Hi,

 

I looked through the known issues and this forum but can't find this anywhere. When I commit an environment to GIT that in my case

a) Turn on native execution engine

b) Adds semtantic-link as a public library

 

Only the native execution engine setting get's restored when pulling changes into the main dev workspace, I tested this on a different workspace too.

 

Fabric shows a change it once to commit right after pulling, opening the environment I can see that semantic-link is not listed as a library, adding it removes the detected change compared to the repo.

 

I git I can see that semantic-link is added to the file Libraries/PublicLibaries/environment.yml:

dependencies:

   - pip:

     - semantic-link==0.9.0

 

So that all looks ok to me. Anyone else ran into this and confirm? Otherwise please add it to the bug tracker...

3 REPLIES 3
nilendraFabric
Solution Supplier
Solution Supplier

Hello  

I have faced this issue.

Give it a try

 Create a pipeline step to enforce environment updates:

 
 
from sempy_labs import EnvironmentManager
 
EnvironmentManager().sync_from_git(repo_path="Libraries/PublicLibraries")


https://learn.microsoft.com/en-us/fabric/data-engineering/environment-git-and-deployment-pipeline

 

@sushiat

Could work I guess, but we aren't using deployment pipelines at all. At the moment just have to manually patch it up. Which is currently doable as the number of workspaces we have is still limited, but growing so would be great if it get's fixed so the native git integration restores it correctly.

Try doing this rather than manual pathchup and see the results :

from sempy_labs import EnvironmentManager
 
EnvironmentManager().sync_from_git(repo_path="Libraries/PublicLibraries")

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!