devspace icon indicating copy to clipboard operation
devspace copied to clipboard

Devspace import from git does not pick up changes to remote config repository

Open djfinnoy opened this issue 1 year ago • 3 comments

What happened? When storing devspace functions in a github repository, and loading them via imports, devspace seems to cache the resulting config, and ignores changes to the remote config repository.

What did you expect to happen instead? Assume:

imports:
  - git: https://github.com/org/devspace-config
    branch: dev
    subPath: ./functions

When pushing changes to this repository, I would expect to see those changes through the output of devspace print. Instead, it seems like the remote functions are only fetched once, and all changes are ignored. At the moment, I can only get function changes implemented by changing the target branch name of org/devspace-config.

How can we reproduce the bug? (as minimally and precisely as possible)

Import remote config from a branch, run devspace print, make changes to the config branch, and run devspace print again. My devspace.yaml:

version: 6.3.7

djfinnoy avatar Dec 18 '23 12:12 djfinnoy

I have the same problem also - the changes from git are not loaded..

HKablan avatar Dec 27 '23 07:12 HKablan

You have to delete the local cache, I believe it's under ~/.devspace. Would be nice if there was an easier way to refresh a remote source though.

djfinnoy avatar Jan 03 '24 05:01 djfinnoy

@djfinnoy thanks for creating this issue! Mhh strange, DevSpace should run a pull automatically, would you mind trying with:

imports:
  - git: https://github.com/org/devspace-config
    branch: dev
    subPath: ./functions
    disableShallow: true

Does this work when not using a branch?

FabianKramm avatar Jan 04 '24 15:01 FabianKramm

After picking up devspace again, I can confirm that this issue has been resolved.

I'm using v6.3.12, remote changes get picked up with and without disableShallow: true.

djfinnoy avatar Apr 10 '24 09:04 djfinnoy