https://github.com/ipfs/go-ipfs
- HEAD
- refs/heads/0.20.0-rc3-test
- refs/heads/Jorropo-patch-1
- refs/heads/Jorropo-patch-2
- refs/heads/ajnavarro/feat/simplify-rm-code-footprint
- refs/heads/ajnavarro/swarm-peering-save
- refs/heads/allow-config-injection
- refs/heads/bifrost-bitswap-cache-wantlist
- refs/heads/bifrost-deadlock-detection
- refs/heads/bifrost-delegated-routing-deadlock
- refs/heads/bifrost-docker
- refs/heads/bifrost-exp
- refs/heads/bifrost-issue8381
- refs/heads/bifrost-tracing
- refs/heads/bifrost-v0.9.1-firstblock
- refs/heads/bitswap/improvements
- refs/heads/bump-go-libp2p-kad-dht
- refs/heads/bump-go-version
- refs/heads/certmanager
- refs/heads/changelog-0.19
- refs/heads/changelog-v0.20
- refs/heads/changelog-v0.22
- refs/heads/changelog-v0.24
- refs/heads/changelog-v0.26
- refs/heads/chore/0.13-post-release-merge
- refs/heads/chore/backport-golang-1.17.9-v0.12.2
- refs/heads/chore/badger2
- refs/heads/chore/deprecate-dht-query-command
- refs/heads/chore/dht-upgrade
- refs/heads/chore/migrate-go-namesys
- refs/heads/chore/rcmgr-refactor
- refs/heads/chore/release-template-marking-info-update-2022-05-13
- refs/heads/chore/updated-go-pinning-service-http-client
- refs/heads/chore/upgrade-boxo-v0.8.0
- refs/heads/ci/changelog
- refs/heads/ci/interop
- refs/heads/ci/resource-type
- refs/heads/ci/target-docker-image
- refs/heads/circleci-get-token
- refs/heads/debug-keep-alive
- refs/heads/debug-libp2p-release
- refs/heads/dependabot/github_actions/codecov/codecov-action-4.1.0
- refs/heads/dependabot/github_actions/docker/login-action-3.1.0
- refs/heads/draft/plugin-dagjose
- refs/heads/early-testers
- refs/heads/early-testers-brave
- refs/heads/exp/hub-cr
- refs/heads/exp/wasm-ipld
- refs/heads/feat/bitswap-monitor
- refs/heads/feat/cid-v1-in-output
- refs/heads/feat/context-sessions
- refs/heads/feat/coreapi/mfs
- refs/heads/feat/dag-import-export-ipfs-node
- refs/heads/feat/dht-metrics
- refs/heads/feat/dht-tracer
- refs/heads/feat/docker-alpine
- refs/heads/feat/docs-global-opts
- refs/heads/feat/embedded-client
- refs/heads/feat/files-add
- refs/heads/feat/global-plugins
- refs/heads/feat/hole-punch
- refs/heads/feat/importable-main
- refs/heads/feat/in-browsers
- refs/heads/feat/ipns-follow
- refs/heads/feat/lib-namesys
- refs/heads/feat/libipfs-upgrade
- refs/heads/feat/nat-status
- refs/heads/feat/no-limits-relay-v2-option
- refs/heads/feat/offline-put
- refs/heads/feat/pin-levels
- refs/heads/feat/pluggable-keystore
- refs/heads/feat/pstoreds
- refs/heads/feat/puts-return-cidv1
- refs/heads/feat/rados-plugin
- refs/heads/feat/smart-records
- refs/heads/feat/stabilize-dht
- refs/heads/feat/swiftds-plugin
- refs/heads/feat/test-harness-tests-peering
- refs/heads/fix-nix-os-install-gha-trigger
- refs/heads/fix/agent-version-suffix
- refs/heads/fix/avoid-wrong-fields-on-config
- refs/heads/fix/circuit-relay-test
- refs/heads/fix/delegated-routing-deadlock
- refs/heads/fix/docker-sharness-trash
- refs/heads/fix/dot-in-config-maps-keys
- refs/heads/fix/fullrt-http-0.19-merge
- refs/heads/fix/issue-9665
- refs/heads/fix/ls-dir-only
- refs/heads/fix/niladdr
- refs/heads/fix/pr-template
- refs/heads/fix/systemd-path
- refs/heads/galargh-patch-1
- refs/heads/galargh-patch-2
- refs/heads/galargh-patch-3
- refs/heads/galargh-patch-4
- refs/heads/galargh-patch-5
- refs/heads/go-libp2p-kad-dht
- refs/heads/grpcds
- refs/heads/grpcds1
- refs/heads/guseggert/test-harness
- refs/heads/guseggert/update-libp2p
- refs/heads/hack/bigfiles
- refs/heads/hsanjuan/custom-path-resolver
- refs/heads/hsanjuan/pebbleds-filcryo-cluster
- refs/heads/improve-release
- refs/heads/init-examples
- refs/heads/internal-cli
- refs/heads/issue-10242
- refs/heads/kevina/filestore-get
- refs/heads/kevina/filestore-rm
- refs/heads/kevina/repo-recreate-root
- refs/heads/libp2p-rcmgr-metrics
- refs/heads/marco/add-rcmgr-metrics-to-prom
- refs/heads/marco/fix-swarm-resources
- refs/heads/marco/update/ws-go-libp2p
- refs/heads/master
- refs/heads/mega-migration
- refs/heads/merge-release-v0.19.0
- refs/heads/no-circleci
- refs/heads/no-testground
- refs/heads/optional-duration
- refs/heads/pebbleds
- refs/heads/process-improvement-v0.18.0
- refs/heads/pull-request-template
- refs/heads/rcmgr-last-push
- refs/heads/relay-config
- refs/heads/release
- refs/heads/release-v0.10.0
- refs/heads/release-v0.11.0
- refs/heads/release-v0.11.1
- refs/heads/release-v0.12.0
- refs/heads/release-v0.12.1
- refs/heads/release-v0.12.2
- refs/heads/release-v0.13.0
- refs/heads/release-v0.13.1
- refs/heads/release-v0.14.0
- refs/heads/release-v0.15.0
- refs/heads/release-v0.16.0
- refs/heads/release-v0.17.0
- refs/heads/release-v0.18
- refs/heads/release-v0.18.1
- refs/heads/release-v0.19.0
- refs/heads/release-v0.19.1
- refs/heads/release-v0.19.2
- refs/heads/release-v0.20.0
- refs/heads/release-v0.21
- refs/heads/release-v0.21.0
- refs/heads/release-v0.22
- refs/heads/release-v0.23.0
- refs/heads/release-v0.24.0
- refs/heads/release-v0.26.0
- refs/heads/release-v0.6.0
- refs/heads/release-v0.7.0
- refs/heads/release-v0.9.1
- refs/heads/repro/resource-manager-errors-when-disabled
- refs/heads/reprovider-prioritization
- refs/heads/revert-1457b4fd4
- refs/heads/revert-9836-bump-boxo
- refs/heads/review-checklist
- refs/heads/rvagg/go-merkledag-v0.7.0
- refs/heads/schomatis/chore/repo/use-config-api
- refs/heads/schomatis/chore/update-go-log-v2
- refs/heads/schomatis/cmds/output-options
- refs/heads/schomatis/feat/cmds/dag-diff
- refs/heads/schomatis/feat/cmds/files/use-cid-v1
- refs/heads/schomatis/feat/cmds/ls-recursive
- refs/heads/schomatis/feat/cmds/object/use-cid-v1
- refs/heads/schomatis/feat/files-cmd/mfs-new-root
- refs/heads/schomatis/feat/notify-outdated-version
- refs/heads/schomatis/feat/test/migrate-cid-tool
- refs/heads/schomatis/fix/cmds/dht/post-processing
- refs/heads/schomatis/fix/cmds/dht/post-processing-json-encoder-causes-error
- refs/heads/schomatis/fix/config/decouple-user-vs-system-config
- refs/heads/schomatis/fix/core/mfs-root-localy-only
- refs/heads/schomatis/review/gc-mfs-not-safe
- refs/heads/sev3aug23
- refs/heads/sharness-summary
- refs/heads/shc
- refs/heads/steb/patch-bitswap
- refs/heads/steb/test-bs-patch
- refs/heads/test/features-opt-int
- refs/heads/test/glibc
- refs/heads/test/multinode
- refs/heads/test/report
- refs/heads/tls-by-default
- refs/heads/update-go-on-ci-gusegggert-1
- refs/heads/update-libp2p-v0261
- refs/heads/upgrade/cr
- refs/heads/version-update-v0.19
- refs/heads/version-update-v0.21
- refs/heads/version-update-v0.22
- refs/heads/version-update-v0.23
- refs/heads/version-update-v0.24
- refs/heads/version-update-v0.25
- refs/heads/version-update-v0.26
- refs/heads/version-update-v0.27
- refs/remotes/chrischool/add_quiet_flag
- refs/remotes/chrischool/bitswap
- refs/remotes/chrischool/feat/rabin-fingerprint
- refs/remotes/origin/feat/transition-cmds
- refs/remotes/origin/feature/update-authors
- refs/tags/sharding-pre
- refs/tags/v0.11.0-rc2
- refs/tags/v0.2.2
- refs/tags/v0.2.2-buildfails
- refs/tags/v0.2.3
- refs/tags/v0.2.3-buildfails
- refs/tags/v0.3.10
- refs/tags/v0.3.11
- refs/tags/v0.3.11-rc1
- refs/tags/v0.3.2
- refs/tags/v0.3.3
- refs/tags/v0.3.3-buildfails
- refs/tags/v0.3.4
- refs/tags/v0.3.5
- refs/tags/v0.3.6
- refs/tags/v0.3.7
- refs/tags/v0.3.8
- refs/tags/v0.3.8-dev-trailers
- refs/tags/v0.3.9
- refs/tags/v0.4.0-rc1
- refs/tags/v0.4.0-rc2
- refs/tags/v0.4.0-rc3
- refs/tags/v0.4.11-pre
- refs/tags/v0.4.3-dev
- v0.9.1
- v0.9.0-rc2
- v0.9.0-rc1
- v0.9.0
- v0.8.0-rc2
- v0.8.0-rc1
- v0.8.0
- v0.7.0-rc2
- v0.7.0-rc1
- v0.7.0
- v0.6.0-rc7
- v0.6.0-rc6
- v0.6.0-rc5
- v0.6.0-rc4
- v0.6.0-rc3
- v0.6.0-rc2
- v0.6.0-rc1
- v0.6.0
- v0.5.1
- v0.5.0-rc4
- v0.5.0-rc3
- v0.5.0-rc2
- v0.5.0-rc1
- v0.5.0
- v0.4.9-rc2
- v0.4.9-rc1
- v0.4.9
- v0.4.8-rc1
- v0.4.8
- v0.4.7-rc1
- v0.4.7
- v0.4.6-rc1
- v0.4.6
- v0.4.5-rc4
- v0.4.5-rc3
- v0.4.5-rc2
- v0.4.5-rc1
- v0.4.5-pre2
- v0.4.5-pre1
- v0.4.5
- v0.4.4
- v0.4.3-rc4
- v0.4.3-rc3
- v0.4.3-rc2
- v0.4.3-rc1
- v0.4.3
- v0.4.23-rc2
- v0.4.23-rc1
- v0.4.23
- v0.4.22-rc1
- v0.4.22
- v0.4.21-rc3
- v0.4.21-rc2
- v0.4.21-rc1
- v0.4.21
- v0.4.20-rc2
- v0.4.20-rc1
- v0.4.20
- v0.4.2
- v0.4.19-rc2
- v0.4.19-rc1
- v0.4.19
- v0.4.18-rc2
- v0.4.18-rc1
- v0.4.18
- v0.4.17-rc1
- v0.4.17
- v0.4.16-rc3
- v0.4.16-rc2
- v0.4.16-rc1
- v0.4.16
- v0.4.15-rc1
- v0.4.15
- v0.4.14-rc3
- v0.4.14-rc2
- v0.4.14-rc1
- v0.4.14
- v0.4.13-rc1
- v0.4.13
- v0.4.12-rc2
- v0.4.12-rc1
- v0.4.12
- v0.4.11-rc2
- v0.4.11-rc1
- v0.4.11
- v0.4.10-rc1
- v0.4.10
- v0.4.1-rc1
- v0.4.1
- v0.4.0
- v0.27.0-rc2
- v0.27.0-rc1
- v0.27.0
- v0.26.0-rc1
- v0.26.0
- v0.25.0-rc1
- v0.25.0
- v0.24.0-rc2
- v0.24.0-rc1
- v0.24.0
- v0.23.0-rc1
- v0.23.0
- v0.22.0-rc1
- v0.22.0
- v0.21.1
- v0.21.0-rc3
- v0.21.0-rc2
- v0.21.0-rc1
- v0.21.0
- v0.20.0-rc2
- v0.20.0-rc1
- v0.20.0
- v0.19.2
- v0.19.1
- v0.19.0-rc1
- v0.19.0
- v0.18.1
- v0.18.0-rc2
- v0.18.0-rc1
- v0.18.0
- v0.17.0-rc2
- v0.17.0-rc1
- v0.17.0
- v0.16.0-rc1
- v0.16.0
- v0.15.0-rc1
- v0.15.0
- v0.14.0-rc1
- v0.14.0
- v0.13.1
- v0.13.0-rc1
- v0.13.0
- v0.12.2
- v0.12.1
- v0.12.0-rc1
- v0.12.0
- v0.11.1
- v0.11.0-rc1
- v0.11.0
- v0.10.0-rc2
- v0.10.0-rc1
- v0.10.0
- floodsub-2
- floodsub-1
- floodsub-0
Raw File
Take a new snapshot of a software origin
If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.
Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.Processing "take a new snapshot" request ...
Permalinks
To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.
Tip revision: 43622bd5eed1f62d53d364dc771bbb500939d9e6 authored by Juan Benet on 31 October 2015, 08:36:13 UTC
added gobuilder no_go_fmt flag to right file
added gobuilder no_go_fmt flag to right file
Tip revision: 43622bd
common.go
package ipns
import (
context "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
"github.com/ipfs/go-ipfs/core"
mdag "github.com/ipfs/go-ipfs/merkledag"
nsys "github.com/ipfs/go-ipfs/namesys"
ci "github.com/ipfs/go-ipfs/p2p/crypto"
path "github.com/ipfs/go-ipfs/path"
ft "github.com/ipfs/go-ipfs/unixfs"
)
// InitializeKeyspace sets the ipns record for the given key to
// point to an empty directory.
func InitializeKeyspace(n *core.IpfsNode, key ci.PrivKey) error {
emptyDir := &mdag.Node{Data: ft.FolderPBData()}
nodek, err := n.DAG.Add(emptyDir)
if err != nil {
return err
}
ctx, cancel := context.WithCancel(n.Context())
defer cancel()
err = n.Pinning.Pin(ctx, emptyDir, false)
if err != nil {
return err
}
err = n.Pinning.Flush()
if err != nil {
return err
}
pub := nsys.NewRoutingPublisher(n.Routing, n.Repo.Datastore())
if err := pub.Publish(ctx, key, path.FromKey(nodek)); err != nil {
return err
}
return nil
}