Skip to content

Commit b3f96a5

Browse files
authored
chore: switch to dist.ipfs.tech (#55)
See protocol/bifrost-infra#2018
1 parent f0953b8 commit b3f96a5

File tree

5 files changed

+12
-15
lines changed

5 files changed

+12
-15
lines changed

.github/actions/check-for-go-ipfs-release/entrypoint.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env bash
22
set -eu
33

4-
echo '💫 Checking https://dist.ipfs.io/go-ipfs/versions for new releases...'
4+
echo '💫 Checking https://dist.ipfs.tech/go-ipfs/versions for new releases...'
55

66
# The version in packge.json e.g. "0.4.20"
77
CURRENT=`node -e 'console.log(require("./package.json").version)'`
8-
# The latest version on dist.ipfs.io e.g. "0.4.21"
9-
LATEST=`curl --silent https://dist.ipfs.io/go-ipfs/versions | tail -n 1 | cut -c 2-`
8+
# The latest version on dist.ipfs.tech e.g. "0.4.21"
9+
LATEST=`curl --silent https://dist.ipfs.tech/go-ipfs/versions | tail -n 1 | cut -c 2-`
1010

1111
# Verify $LATEST is valid semver!
1212
if ! npx semver $LATEST; then

.github/actions/publish/entrypoint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ fi
2222

2323
# The version in packge.json e.g. "0.4.20"
2424
CURRENT=`node -e 'console.log(require("./package.json").version)'`
25-
# The latest version on dist.ipfs.io e.g. "0.4.21"
26-
LATEST=`curl --silent https://dist.ipfs.io/go-ipfs/versions | tail -n 1 | cut -c 2-`
25+
# The latest version on dist.ipfs.tech e.g. "0.4.21"
26+
LATEST=`curl --silent https://dist.ipfs.tech/go-ipfs/versions | tail -n 1 | cut -c 2-`
2727

2828
# Verify $LATEST is valid semver!
2929
if ! npx semver $LATEST; then

README.md

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
# npm-go-ipfs
22

3-
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
4-
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
5-
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
3+
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech/)
64
[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
7-
[![Dependency Status](https://david-dm.org/ipfs/npm-go-ipfs.svg?style=flat-square)](https://david-dm.org/ipfs/npm-go-ipfs)
85

9-
> install go-ipfs from npm
6+
> install [Kubo](https://github.com/ipfs/kubo) (previously known as "go-ipfs") from npm
107
118
## Table of Contents
129

@@ -19,7 +16,7 @@
1916

2017
## Install
2118

22-
Install the latest [go-ipfs](https://github.com/ipfs/go-ipfs/) binary:
19+
Install the latest [Kubo](https://github.com/ipfs/kubo/) (go-ipfs) binary:
2320

2421
```sh
2522
# Install globally
@@ -35,7 +32,7 @@ ipfs version v0.7.0
3532

3633
## Usage
3734

38-
This module downloads `go-ipfs` binaries from https://dist.ipfs.io into your project.
35+
This module downloads Kubo (go-ipfs) binaries from https://dist.ipfs.tech into your project.
3936

4037
It will download the go-ipfs version that matches the npm version of this module. So depending on `go-ipfs@0.7.0` will install `go-ipfs v0.7.0` for your current system architecture, in to your project at `node_modules/go-ipfs/go-ipfs/ipfs` and additional symlink to it at `node_modules/go-ipfs/bin/ipfs`.
4138

@@ -71,7 +68,7 @@ publish a version of go-ipfs to npm
7168

7269
This will:
7370

74-
- check the version is indeed a tag in https://github.com/ipfs/go-ipfs
71+
- check the version is indeed a tag in https://github.com/ipfs/kubo
7572
- check the size of `bin/ipfs` is right (must be the checked in file)
7673
- update the version numbers in `package.json` and `README.md`
7774
- `git commit` the changes

src/download.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function cleanArguments (version, platform, arch, installPath) {
116116
cwd: process.env.INIT_CWD || process.cwd(),
117117
defaults: {
118118
version: 'v' + pkg.version.replace(/-[0-9]+/, ''),
119-
distUrl: 'https://dist.ipfs.io'
119+
distUrl: 'https://dist.ipfs.tech'
120120
}
121121
})
122122

test/download.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test('Returns an error when version unsupported', async (t) => {
2929
test('Returns an error when dist url is 404', async (t) => {
3030
await clean()
3131

32-
process.env.GO_IPFS_DIST_URL = 'https://dist.ipfs.io/notfound'
32+
process.env.GO_IPFS_DIST_URL = 'https://dist.ipfs.tech/notfound'
3333

3434
await t.rejects(download(), /404/)
3535

0 commit comments

Comments
 (0)