fresh-yak-35965
07/08/2024, 2:47 PM┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ 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.microscopic-river-74022
07/08/2024, 2:47 PMmicroscopic-river-74022
07/08/2024, 2:47 PMsrc/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:
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:
----------------------microscopic-river-74022
07/08/2024, 2:47 PM