I am getting the following error:```┈┈┈┈┈┈┈┈┈┈┈┈┈┈...
# 🤖|ask-kapa
f
@microscopic-river-74022 I am getting the following error:
Copy code
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ Command deploy completed successfully! ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
⚠ deploy.api                → [sync] Sync conflict detected at path src/kraken/api/adapters/database in sync from . to /app in Deployment/api.

Until the conflict is resolved, the conflicting paths will not be synced.

If conflicts come up regularly at this destination, you may want to use either the one-way-replica or one-way-replica-reverse sync modes instead.

See the code synchronization guide for more details: https://docs.garden.io/guides/code-synchronization#sync-modes
The issue is that I've deleted the
src/kraken/api/adapters/database
directory altogether, and I don't need it synced. Furthermore, the sync strategy is already set to
one-way-replica
. I've deleted the
.garden
directory to see if it was caching problem and it did not correct the issue.
m
Please stand by @fresh-yak-35965 as I search the knowledge base. I normally take about 20 seconds or so. :wave:
---------------------- It seems like you're experiencing a sync conflict with Garden. Even though you've deleted the
src/kraken/api/adapters/database
directory, Garden might still be trying to sync it due to its configuration. Firstly, ensure that the
src/kraken/api/adapters/database
directory is not included in your sync paths. You can specify exclusion rules on individual sync configs or set project-wide exclusion rules on the
local-kubernetes
and
kubernetes
providers. Here's an example of how to exclude specific paths:
Copy code
yaml
kind: Deploy
name: node-service
type: container
dependencies:
  - build.node-service-build
spec:
  image: ${actions.build.node-service-build.outputs.deploymentImageId}
  args: [npm, run, serve]
  sync:
    paths:
      - target: /app/src
        source: src
        mode: two-way
        exclude: [node_modules, tmp, "**/*.log"] # <------ paths matching these patterns won't be synced
...
If the issue persists, you might want to consider changing your sync mode. The error message suggests using
one-way-replica
or
one-way-replica-reverse
sync modes. Since you're already using
one-way-replica
, you could try
one-way-replica-reverse
which syncs a remote
target
path to a local
source
path, such that
source
is always an exact mirror of
target
(with the exception of excluded paths). When using this mode, there can be no conflicts—the contents of
target
always override the contents of
source
. For more information, refer to the Code Synchronization Guide () in the Garden documentation. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
message has been deleted
3 Views