Change in Cygwin environment?
The following worked reliably for me as late as last night, but now I'm getting an error:
curl -s https://api.github.com/repos/Wyamio/wyam/releases | grep tag_name | head -n 1 | C:\cygwin\bin\grep -oP ': "\K[^"]*' > ..\Wyam\wyamversion.txt
Command exited with code 1
For the record, it gets the latest version of a GitHub release. Did anything change with the Cygwin or curl setup on the VMs recently?
Thanks!
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by dave on Jun 28, 2015 @ 03:28 PM
It's working again - if you did something, thanks! If not, must have just been a temporary hiccup. BTW, *love* the new super-fast build environments :)
Support Staff 2 Posted by Feodor Fitsner on Jun 28, 2015 @ 03:30 PM
That's the trick - I did nothing :) Was about to say that your account migrated to a new environment and suggest investigating with RDP. Great it works anyway.
3 Posted by dave on Jun 29, 2015 @ 03:37 PM
I continued to have intermittent problems, and finally figured it out. Thought you might be interested to know what was going on. My curl request was going to the GitHub API which is rate limited. Turns out that for many requests I was getting back:
"message":"API rate limit exceeded for 75.126.44.186. ...
Since that didn't have the string I expected, the subsequent grep, etc. calls failed. I worked around the problem by getting what I needed without using the GitHub API but figured someone else might stumble on this help article with a similar issue and wonder what was going on.
Also, being able to RDP to the build server was awesome! Wouldn't have been able to figure out so easily otherwise.
Support Staff 4 Posted by Feodor Fitsner on Jun 30, 2015 @ 03:02 AM
OSS workers are behind NAT and have the same external IP, so yeah GitHub API rate limit is going to be a challenge though you can use a token to authenticate your calls and remove the limitation.
dave closed this discussion on Feb 26, 2018 @ 09:00 PM.