Open JimLynchCodes opened 1 year ago
@JimLynchCodes hi, by design we currently do not modify the cargo file. One option is we can pass in a temp file for the deployment or look into adding a flag to overwrite or modify in place.
I don't like the idea of having the build actually modify the file. I'd prefer if it deployed a temp file. thanks
Hi again! 😃
I have a new exploration spike project now in which I am testing out the
-n
flag.I deployed with this command:
npm seems to work great. I install with:
and then use it like this:
For Cargo I would expect to be able to do this:
But instead, Cargo doesn't respect the -n flag. Instead, it wants me install with this:
So, I am wondering... is it by design that the cargo package doesn't use the custom name? It is like an anti-pattern for me to want to do this in the first place? Or is it some limitation of cargo that you cannot publish with these two things having different names?
Just curious why it is like this because it seems unintuitive to me.
Thanks!