bench get-app hrms --resolve-deps
Following apps will be installed
frappe/erpnext (required by hrms)
hrms
fatal: ref refs/remotes/upstream/HEAD is not a symbolic ref
Incompatible version of erpnext is already installed
ERROR: [Errno 2] No such file or directory: ‘./apps/frappe/erpnext/erpnext/init.py’
git status
On branch version-15
Your branch is up to date with ‘upstream/version-15’.
Changes not staged for commit:
(use “git add …” to update what will be committed)
(use “git restore …” to discard changes in working directory)
modified: yarn.lock
no changes added to commit (use “git add” and/or “git commit -a”)
Okay this is the problem, when updating the application, JavaScript dependencies are retrieved using yarn, which means that the yarn.lock file is updated if dependencies are not correctly locked, which is the case here: this is a problem to fix.
Basically, you have to stash inside hrms before updating until the problem is fixed.
My script only handles installation not running so this is outside the scope of what my script could have caused or can resolve. However, this may be tied to a function/process within the hrms app that could be causing application level changes to occur.
You can first determine the actual changes that are occuring by checking the files that are changed, this could give you an idea of how this is happening so you can find a way to mitigate it. Beyond knowing what changes occur, I may be unable to give you any tips on how to resolve it.
I didn’t suggest that you made the changes. What i am asking is for you to go to the app directory and run git status to see the files changed and possibly open the files to see the exact changes. This could give you an idea of what changes are being made to the app and why.
darklord@Rahul-PC:~/frappe-bench$ cd apps
darklord@Rahul-PC:~/frappe-bench/apps$ cd hrms
darklord@Rahul-PC:~/frappe-bench/apps/hrms$ git status
On branch version-15
Your branch is up to date with 'upstream/version-15'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: yarn.lock
no changes added to commit (use "git add" and/or "git commit -a")
darklord@Rahul-PC:~/frappe-bench/apps/hrms$