Update devfiles to use PROJECT_SOURCE instead of PROJECTS_ROOT #21079
Labels
area/devfile-registry
area/editor/jetbrains/intellij
Issues related to the IntelliJ-based IDE for Eclipse Che
area/editor/theia
Issues related to the che-theia IDE of Che
area/editor/vscode
Issues related to the Code OSS editor of Che
area/ux
Issues related to User Experience Design
kind/enhancement
A feature request - must adhere to the feature request template.
severity/P1
Has a major impact to usage or development of the system.
sprint/current
Is your enhancement related to a problem? Please describe
most of our devfiles are single-project based.
so we should try to avoid to use PROJECTS_ROOT variable that is pointing to the parent folder of the project but use instead PROJECT_SOURCE variable that is pointing to the first project of the devfile.
Issue when using PROJECTS_ROOT is that if someone fork a repository and rename the repository name, devfile has still pointer to the previous project's name.
Describe the solution you'd like
so devfiles could be simplified
Describe alternatives you've considered
No response
Additional context
I've added editor area to be sure that when we execute commands, default directory if not specified is using PROJECT_SOURCE environment variable and not something else.
The text was updated successfully, but these errors were encountered: