-
Notifications
You must be signed in to change notification settings - Fork 124
Move JS interface definition to a subdirectory #205
Conversation
@magik6k sounds good to me. Can you also update the README? |
9727587
to
8f3d6b1
Compare
@diasdavid done (assuming that's what you meant) |
README.md
Outdated
@@ -102,6 +102,11 @@ In order to be considered "valid", an IPFS core implementation must expose the | |||
- [Miscellaneous](/SPEC/MISCELLANEOUS.md) | |||
- [config](/SPEC/CONFIG.md) | |||
|
|||
Language-specific interface definitions and tests are in their directories: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You only find the tests on the js/src
folder. The interface definitions remain at /SPEC
Can we have at least one of the go-ipfs core APIs spec'ed and tested out just to see how it feels? |
8f3d6b1
to
1c44a1b
Compare
For the code the plan is to just move https://github.com/ipfs/go-ipfs/tree/master/core/coreapi/interface here into I removed the readme change as it didn't really make sense. |
I'm not sure how well gx deals with packages in repo subdirectories. If it turns out that we have to perform in-depth surgery on gx, I'd recommend putting the Go interfaces into their own repo. Could you try that out before we merge this PR? |
So I did {
[...]
"bugs": {
"url": "https://github.com/ipfs/interface-ipfs-core"
},
"gx": {
"dvcsimport": "github.com/ipfs/interface-ipfs-core/go"
},
"gxVersion": "0.11.0",
[...]
"name": "go",
} Go tooling didn't have any problems with importing this package (though if a user wants to go-get it it needs to be I'd say that it works well enough to have these things in one repo |
That's excellent! Thank you @magik6k ❤️ Mind rebasing master onto this PR to fix merge conflicts? |
1c44a1b
to
f1e6c95
Compare
@diasdavid done |
This is in preparation for #66 / ipfs/kubo#4498.
{src,test}/{js,go}
github.com/ipfs/interface-ipfs-core/src/go/
.. vsgithub.com/ipfs/interface-ipfs-core/go/