Closed edbordin closed 4 years ago
Why are you running make bumpversion
? This command is for upstream use only.
I wanted to output a version string that nmigen understands while also updating it every day https://github.com/open-tool-forge/fpga-toolchain/issues/33
I see! Please do not change the part of the version after +
in any way compared to the upstream packages, nMigen actually relies on it being the same as upstream and any changes would make my job harder.
I'll close this now that I have a better understanding of what's going on.
Steps to reproduce the issue
make bumpversion
Expected behavior
Makefile is updated to reflect current version relative to latest release.
Actual behavior
BSD
sed
installed on OS X is not compatible with GNU sed. Similarly, BSDwc
inserts unwanted whitespace.Suggested solutions
Homebrew has
gnu-sed
andcoreutils
packages providing GNU versions. Macports hasgsed
andcoreutils
packages. If you assume that one of these options is installed it would be enough to usegsed
andgwc
on Darwin. Alternatively you can add the GNU versions to the PATH under their standard namessed
andwc
. I'm happy to prepare a PR using either approach if someone can provide guidance.