Closed insign closed 3 years ago
Thanks @insign! I've got a bit of work to do on Lokl when I next have chance, will review this then
Hi @insign,
I've put out rc2 recently and updated the GH main pages, along with the website.
Regarding keeping it updated to always point to the latest, I could make a /latest
URL, that may be easiest for a use case like yours, what do you think?
We'd still want some kind of cachebusting string when you use that in such a way, to ensure that it really is the latest.
ie alias lok="sh -c \"\$(curl -sSl 'https://lokl.dev/latest?cb=$(date +%s)')\""
(haven't tested that syntax, but that kind of idea)
Reference for myself for later:
Passing no-cache
in headers to cURL not guaranteed to ignore all caching layers.
I should also check where I'm hosting Lokl.dev now, Cloudflare Workers, so need to make sure query string cache bypassing is enabled
@insign I've made a link with the just released 5.0.0 to latest
, so you can adjust this and some timestamp as hinted above to your alias
line:
sh -c "$(curl -sSl 'https://lokl.dev/latest')"
Please let me know if any issues with it.
Also, beware the latest
tag, there could be breaking changes in case you're using in certain workflows, or when a new WordPress or PHP version is added, etc.
Thank you.
I made an alias so, how can get always the latest version 5?
alias lok="sh -c \"\$(curl -sSl 'https://lokl.dev/cli-5.0.0-rc1')\""
https://lokl.dev/cli-5-latest
or something like this.BTW, add a more clear link to the main page of the github repo in the main site.