Skip to content

Update devfiles to use PROJECT_SOURCE instead of PROJECTS_ROOT #21079

@benoitf

Description

@benoitf

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

  • remove PROJECTS_ROOT in devfiles
  • use PROJECT_SOURCE only if really needed as default working directory of commands should be PROJECT_SOURCE

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.

Metadata

Metadata

Assignees

Labels

area/devfile-registryarea/editor/jetbrains/intellijIssues related to the IntelliJ-based IDE for Eclipse Chearea/editor/theiaIssues related to the che-theia IDE of Chearea/editor/vscodeIssues related to the Code OSS editor of Chearea/uxIssues related to User Experience Designkind/enhancementA feature request - must adhere to the feature request template.severity/P1Has a major impact to usage or development of the system.sprint/current

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions