the CmdStan makefile is a dev-oriented thing, so it assumes you want the latest.
the CmdStan release tarball comes with the appropriate binaries for that release.
I created an issue #93 and opened a PR #94 to allow for downloading a specific version.
While I understand that the makefile is a dev-oriented thing, it still makes sense to be able to control which version of stanc3 is downloaded.
This particular fix is unintrusive… if you just type make bin/stanc, it’ll do exactly what it did before… download the nightly version. The PR gives an option to download a specific version.
This is really useful. While there are ways of specifiying specific binaries with URLs and develop always downloads the fresh binary like mentioned above by Ben and Mitzi, one thing that was always a bit cumbersome was checking out a specific releaes version in your cloned Cmdstan.
You either had to specify the URL to the 2.23 release binary or had to build stanc3 locally. So this is really nice.