-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gencmdref script ending in runtime error #1735
Comments
does piping |
Nope. |
Clarification: |
run it like:
but yeah i see the same error as @RichardLitt -- after a bunch of good output, i get the stuff below. this is weird because running
|
@RichardLitt where's the hardcoded path? is that in the website repo? |
ah yep: https://github.com/ipfs/website/blob/master/src/ipfs.io/docs/commands/Makefile#L3 -- though that's pretty standard and likely to match most users' installation of go. maybe slightly better would be to do, there: gencmdref:
wget -o gencmdref https://raw.githubusercontent.com/ipfs/go-ipfs/master/bin/gencmdref
# or replace this o/ with an https://ipfs.io/ipfs/<hash> url, to get security
chmod +x gencmdref
cmdref.md: gencmdref
ipfs commands | ./gencmdref >$@ |
(or yeah, move it there altogether) |
So, this is still breaking. And we can't update the website with that being broken. @whyrusleeping can you help? or @noffle or @lgierth, maybe? |
looks like this is an issue with ipfs dht put, repro with:
|
more concretely:
|
it seems to be because we give it a stdin argument, and it counts that as an 'available argument' even though we don't have anything. Then, since the first argument isnt one that can be satisfied by stdin, attempts to grab the first input (that doesnt exist), and panics because of array boundary breaking |
Thanks @whyrusleeping. |
I am trying to move
bin/gencmdref
to the ipfs/website directly, because the Makefile there uses it, it has a hardcoded to path to where it is stored on @jbenet's machine, and there's now been two PRs to the script in this repository to fix an issue in ipfs/website (#1733 and #1723).Running
ipfs commands | gencmdref
breaks, however, and I'm not sure why. Here is my exit code:The text was updated successfully, but these errors were encountered: