Changes to dockerfile are not picked up
# 🌱|help-and-getting-started
s
Hi, I think I'm bumping into caches somewhere, but I"m not sure which ones, and I'm not sure how to proceed. I have a container-type module which references a repository:
Copy code
yaml
kind: Module
type: container
name: gateway-cache
repositoryUrl: git@github.com:B612-Asteroid-Institute/gateway.git#main

services:
  # <etc>
The
gateway
repository (which is private, sorry) has a Dockerfile in it. When I
garden build
this
gateway-cache
module, I get an error. The error is from an old line in an old version of the Dockerfile - not the version currently at
HEAD
of
main
on that repo. I don't seem to be able to propagate changes from my Dockerfile to the garden build. Our Garden installation was mostly set up by other developers on my team so I don't know what other context would be helpful. We use
buildMode: cluster-buildkit
on a kubernetes cluster, if that helps. What caches are involved in
garden build
and how do I clear them or disable their use?
b
Hey, I would remove the .garden folder and run it again, it seems to me that the repo is not getting cloned again by Garden because it’s already there and you are focusing in main. Just garden delete environment and then remove the .garden folder
c
Hey, remote sources do not update automatically unless they are linked. Please read through this section in our docs: https://docs.garden.io/advanced/using-remote-sources#updating-remote-sources You can use
garden update-remote all
to update all sources.
s
Ah, that is obviously what it is. Thanks @calm-family-29323 .
3 Views