diff --git a/README.md b/README.md index 61854f6..ebee7bf 100644 --- a/README.md +++ b/README.md @@ -264,8 +264,7 @@ Foliage also supports patches. Any file with `.patch` extension in sources. Patches are applied very early in the process, and they can modify any file -in the source tree. This means one could use a patch to define a new -package version (by changing the version field in the cabal file). +in the source tree. Revisions are independent of patches, a patched cabal file will be subject to revisions just like the original cabal file. @@ -274,6 +273,14 @@ to revisions just like the original cabal file. changes the content of the source distribution and the repository can only provide one source distribution for a given package name and version. +# New package versions + +You can introduce new versions of existing packages by patching the cabal +file. Foliage supports a short cut for this use case. If the package +metadata file `//meta.toml` includes the option +`force-version = true`, then the version in the package cabal file will be +overwritten with ``. Notice this is done after applying patches. + ## Author - Andrea Bedini (@andreabedini)