Forum Discussion
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...
There has been some progress on this, it's now on the known issues list, detailed link here for anybody discovering this conversation:
https://learn.microsoft.com/en-us/fabric/known-issues/known-issue-1025-environment-git-integration-imports-libraries-not-work
Let's hope it won't take too long to now get it resolved. Will close this thread in the meantime.
12 Replies
- nilendraFabric
Super User
Hello
I have faced this issue.
Give it a tryCreate a pipeline step to enforce environment updates:
from sempy_labs import EnvironmentManagerEnvironmentManager().sync_from_git(repo_path="Libraries/PublicLibraries")
https://learn.microsoft.com/en-us/fabric/data-engineering/environment-git-and-deployment-pipeline- sushiat
Helper I
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.
- nilendraFabric
Super User
Try doing this rather than manual pathchup and see the results :
from sempy_labs import EnvironmentManagerEnvironmentManager().sync_from_git(repo_path="Libraries/PublicLibraries")
- v-saisrao-msft
Community Support
Hi sushiat,
Thank you for reaching the Microsoft Forum Community.
I wanted to check if you had the opportunity to review the information provided by nilendraFabric. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you. - v-saisrao-msft
Community Support
Hi sushiat,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
- sushiat
Helper I
No unfortunatey not, the solution via the python code is a workaround at best. And for the one or two libraries we are currently adding to our environments fixing it manually is much faster then starting up a spark session to execute the code.
Ideally none of this would be necessary, my goal was to get this reported to the dev team so they can fix the git integration.
- v-saisrao-msft
Community Support
Hi sushiat,
Thank you for connecting with us!
Could you kindly confirm whether the issue has been resolved? If a solution has been identified, sharing your insights with the community would be greatly appreciated, as it could assist other members facing similar challenges.
Thank you.