Just a quick question. I was wondering if the version of Caddy be inserted into the file metadata. I’m using Windows for my OS and if I run the PowerShell command
The VersionInfo is does not show up. Is it possible to have this done as part of the release process? I’m wanting to use that metadata as a way to help create a roll out and testing method of the latest release of Caddy.
Just to be clear, the output of caddy version isn’t explicitly API, so I wouldn’t depend on it too heavily if I were you…
However, the version number is likely to always be a standard semantic version - there are lots of semver parsers available - I’d wager there’s probably one available for powershell that’ll avoid complication…
Got it. So what would be the suggested method to help version lock or version protect Caddy? My thought is that if we have 10 web servers and I want to try the latest version I can just drop the version onto 1 of the 10 servers. However when our scripts run the hashes wouldn’t match and the test version would become overwritten and source always wins the mismatch unless the destination version is higher.