Skip to content

fix: use absolute app path in igniteapps.yaml #4705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 30, 2025
Merged

Conversation

Pantani
Copy link
Collaborator

@Pantani Pantani commented May 26, 2025

close #4694

@Pantani Pantani self-assigned this May 26, 2025
@github-actions github-actions bot added component:ci CI/CD workflow and automated jobs. component:configs component:cmd type:services Service-related issues. type:internal labels May 26, 2025
@julienrbrt
Copy link
Member

tests are failing with incorrect plugin names: https://github.com/ignite/cli/actions/runs/15266584488/job/42933260914?pr=4705

@Pantani Pantani marked this pull request as draft May 27, 2025 15:58
@Pantani Pantani marked this pull request as ready for review May 29, 2025 06:33
pluginPath = pluginPathAbs
}
// This is a local plugin, check if the directory exists
if filepath.IsAbs(pluginPath) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, but, what if you already have relative paths in your igniteapp.yml in your chain locally and in an app.

Maybe ignite doctor should do something about it (or simply fail if that's the case)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are already using only the absolute path here. We filter at the top level of the application. If it is a relative path, we convert it to an absolute path. In this part, the path is already absolute

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, just tried

$ ignite app install ../../projects/ignite/apps/connect/
✔ Done loading apps
🎉 Installed ../../projects/ignite/apps/connect/
$ cat igniteapps.yml
apps:
- path: ../../projects/ignite/apps/connect/

from the previous version, and try to run with the new one and it kept working 👍🏾

Just uninstalling and describing doesn't work if using a relative path, but i think that's a ok tradeoff. I was more worried about the apps not being loaded.

Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! but i think we need to do something in case an user is already using relative paths (#4705 (comment)).

Probably ignite doctor should just error if it finds a relative path in an igniteapp.yml (no need to try to make them absolute, as relative paths are ambiguous)

@julienrbrt julienrbrt merged commit d15b052 into main May 30, 2025
44 checks passed
@julienrbrt julienrbrt deleted the fix/relative-app-path branch May 30, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FIX: Install an app using the . as a current path show a wrong app name
2 participants