Cache mounts MUST be in the format --mount=type=cache,id=<cache-id>
I'm getting this error while trying to cache downloading a somewhat challenging to cache pip package:
This runs file locally and the package isn't redownloaded, but it fails on Railway with:
Why is
id
mandatory, and why is it missing the target field?14 Replies
Project ID:
87f6d50b-7bab-488e-b802-02f9edc442e3
87f6d50b-7bab-488e-b802-02f9edc442e3
the id is the service id, but I'll get you the correct format when I'm back at my computer
doesn't seem like I can use:
Because that wouldn't really cache it I guess...
i mean theres not even a service id there
You're correct, but specifying
id
without target
doesn't help (no matter what the ID is)I'll get you the correct format when I'm back at my computer
Solution
Thanks Brody, trying to go a different way about this but this will surely come handy!
no problem
@Brody :
the
s/
and the -
are intetional, correct?yes
Ahhh but unfortunately I'm using the same Dockerfile for two services...sigh
might have to forgo the cache then