Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 9838c06

Browse files
Merge pull request #152 from keep-network/dont-use-unauthenticated-git-protocol
Don't use unauthenticated git protocol
2 parents 5c6371f + f33a1fd commit 9838c06

4 files changed

Lines changed: 31 additions & 3 deletions

File tree

.github/workflows/node.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ jobs:
6666
- name: Install dependencies
6767
run: npm ci
6868

69+
# We need this step because the `@keep-network/tbtc` which we update in
70+
# next step has a dependency to `@summa-tx/relay-sol@2.0.2` package, which
71+
# downloads one of its sub-dependencies via unathenticated `git://`
72+
# protocol. That protocol is no longer supported. Thanks to this step
73+
# `https://` is used instead of `git://`.
74+
- name: Configure git to don't use unauthenticated protocol
75+
run: git config --global url."https://".insteadOf git://
76+
6977
- name: Resolve latest contracts
7078
if: github.event_name != 'workflow_dispatch'
7179
run: |

.github/workflows/npm.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ jobs:
2727
- name: Install dependencies
2828
run: npm ci
2929

30+
# We need this step because the `@keep-network/tbtc` which we update in
31+
# next step has a dependency to `@summa-tx/relay-sol@2.0.2` package, which
32+
# downloads one of its sub-dependencies via unathenticated `git://`
33+
# protocol. That protocol is no longer supported. Thanks to this step
34+
# `https://` is used instead of `git://`.
35+
- name: Configure git to don't use unauthenticated protocol
36+
run: git config --global url."https://".insteadOf git://
37+
3038
- name: Resolve latest contracts
3139
run: |
3240
npm update --save-exact \

README.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ been a release.
2222

2323
API stability is not guaranteed, but the API is likely ~90% complete.
2424

25+
*NOTE:* The `tbtc.js` package contains an indirect dependency to
26+
`@summa-tx/relay-sol@2.0.2` package, which downloads one of its sub-dependencies
27+
via unathenticated `git://` protocol. That protocol is no longer supported by
28+
GitHub. This means that in certain situations installation of the package or
29+
update of its dependencies using NPM may result in `The unauthenticated git
30+
protocol on port 9418 is no longer supported` error. +
31+
As a workaround, we advise changing Git configuration to use `https://` protocol
32+
instead of `git://` by executing:
33+
```
34+
git config --global url."https://".insteadOf git://
35+
```
36+
2537
== Usage
2638

2739
You need two things to use `tbtc.js`:

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)