Open texastony opened 2 months ago
Super casual instructions to resolve patch cannot be applied error
:
git mv codegen-patches/<Namespace, ie: AwsCryptographyKeyStore>/<runtime, ie: dotnet>/dafny-4.2.0.patch $(git rev-parse --show-toplevel)/temp.path
make polymorph_code_gen DAFNY_VERSION=4.2.0
, which will now succeed, since it will not fail to apply the patchgit add .
temp.path
in step 1 to determine what the manual changes are.git diff > codegen-patches/<Namespace, ie: AwsCryptographyKeyStore>/<runtime, ie: dotnet>/dafny-4.2.0.patch
git add <changed-files-runtime-namespace> codegen-patches
git commit -m "polymorph is a good idea but needs some manual effort"
These steps are necessary when:
git diff
that invalidates the patches. I have had significant success with using gmake
from Home Brew to determine Make recipes.
My gmake
is much better than the make
that came installed on my Mac.
The Shared Makefiles are pretty much the only way to use Smithy-Dafny and Dafny at scale.
However, they lack documentation.
Recently, I struggled to re-polymorph my project, running into a
patch cannot be applied error
.I figured out a work around, which I think should be recorded somewhere, along with at least some general guidance on the top-level make recipes of the Shared Makefiles.