Skip to content
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

devon ide update does not pull latest project settings #363

Closed
andreasrichtercg opened this issue Mar 13, 2020 · 2 comments · Fixed by #367
Closed

devon ide update does not pull latest project settings #363

andreasrichtercg opened this issue Mar 13, 2020 · 2 comments · Fixed by #367
Labels
bug Something isn't working settings ide-settings repo and replated processes and features update related to updating software or the entire devonfw-ide
Milestone

Comments

@andreasrichtercg
Copy link

andreasrichtercg commented Mar 13, 2020

Steps to reproduce (bug) / Use Case of feature request (enhancement)

Expected:

  1. Architect creates project settings repository
  2. Developer uses "setup" command with settings repository url to setup devon ide with project settings
  3. Architect updates project settings repository
  4. Developer updates devon ide using "devon ide update"
  5. Devon ide pulls latest settings from project settings
  6. Devon ide updates components according latest settings defined by architect

Actual:

  1. Architect creates project settings repository
  2. Developer uses "setup" command with settings repository url to setup devon ide with project settings
  3. Architect updates project settings repository
  4. Developer updates devon ide using "devon ide update"
  5. Devon ide does not pull latest settings from project settings
  6. Devon ide updates components according initial settings state set defined by architect

Affected version:

devonfw-ide-scripts 3.2.4
devonfw 3.2.1

  • OS: Windows
@markusschuh
Copy link
Member

markusschuh commented Mar 13, 2020

I'd say, you indeed have identified a bug or important enhancement identified here. The project settings feature does not seem yet to get the awareness, it deserves. So any more use and opening a bug. like your's here, is a very helpful feedback, IMHO.

The help of devon promises such an update - at least, when an explicit update settings is used:

devon help ide
. . . 
update settings                  update settings (git pull)

In order to analyze this, I have added now some quick-hack tracing functionality to my local devonfw-ide scripts (see my comments in #261) which results in the output lines:

DEVONFW_IDE_TRACE_MY_MODIFIED_CLONE=yes devon ide update  2>&1 | less -N
. . .
   2288 + '[' update = -h ']'
   2289 + '[' update = help ']'
   2290 + '[' update = setup ']'
   2291 + '[' update = uninstall ']'
   2292 + '[' update = update ']'
   2293 + '[' -z '' ']'
   2294 + doUpdateSettings
   2295 + '[' '!' -d /e/opt/devonfw-ide-scripts/settings ']'
   2296 + doUpdateSoftware
. . .

When the settings directory exists, the doUpdateSettings function should check, if it is a git repository and run a git pull then. But the related code - to be executed in the else clause of the "no settings directory exist?" check in above output line 2295 - does not yet seem to have been introduced into the master branch.

I assume the doGitPullOrClone function in functions already provides most of the needed functionality, so a PR should not be too hard. But no PR from my side for today.

@hohwille hohwille added this to the release:3.3.0 milestone Mar 17, 2020
@hohwille hohwille added settings ide-settings repo and replated processes and features update related to updating software or the entire devonfw-ide bug Something isn't working and removed bug Something isn't working labels Mar 17, 2020
@hohwille hohwille linked a pull request Mar 17, 2020 that will close this issue
@hohwille
Copy link
Member

Fixed with PR #367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working settings ide-settings repo and replated processes and features update related to updating software or the entire devonfw-ide
Projects
None yet
3 participants