Skip to content

Instantly share code, notes, and snippets.

View davecheney's full-sized avatar
🤔
i have concepts of a plan

Dave Cheney davecheney

🤔
i have concepts of a plan
View GitHub Profile
#!/bin/bash
set -e
go test -c -race
# go test -c
PKG=$(basename $(pwd))
while true ; do
# env GOMAXPROCS=$[ 1 + $[ RANDOM % 128 ]] GOTRACEBACK=2 ./$PKG.test $@ 2>&1
env GOMAXPROCS=$[ 1 + $[ RANDOM % 128 ]] ./$PKG.test $@ 2>&1
lucky(~/devel/demo6) % gb list
github.com/kelseyhightower/confd
github.com/kelseyhightower/confd/backends
github.com/kelseyhightower/confd/backends/consul
github.com/kelseyhightower/confd/backends/env
github.com/kelseyhightower/confd/backends/etcd
github.com/kelseyhightower/confd/backends/redis
github.com/kelseyhightower/confd/backends/zookeeper
github.com/kelseyhightower/confd/integration/zookeeper
github.com/kelseyhightower/confd/log
@davecheney
davecheney / proposal.md
Last active August 29, 2015 14:27
proposal: a version numbering scheme and release process for Go projects

Note to readers

Following the Go change proposal policy the following text will be the contents of the issue raised to open the discussion on this proposal.

I fully expect that this proposal will generate considerable discussion and will call for a design document. This document will be produced if the initial proposal is accepted.


Preface

/root/bin/sel_ldr_arm --reserved_at_zero=0x0000000040002000 -vvvv -S -- /tmp/go-build173594840/bufio/_test/bufio.test -test.v=true
[19585,1995730944:00:40:27.336968] Set(0,(nil)) @ix 0: 0x00000000
[19585,1995730944:00:40:27.337798] After @ix 0: 0x00000000, avail_ix 0
[19585,1995730944:00:40:27.356936] Processing I/O redirection/inheritance from environment
[19585,1995730944:00:40:27.357058] NaClAddHostDescriptor: host 5 as nacl desc 0, flag 0x0
[19585,1995730944:00:40:27.357156] NaClRefCountCtor(0x775a1408).
[19585,1995730944:00:40:27.357220] Set(0,0x775a1408) @ix 0: 0x00000000
[19585,1995730944:00:40:27.357274] After @ix 0: 0x00000001, avail_ix 0
[19585,1995730944:00:40:27.357329] NaClAddHostDescriptor: host 6 as nacl desc 1, flag 0x441
[19585,1995730944:00:40:27.357378] NaClRefCountCtor(0x775a1450).
% go get -u github.com/constabulary/gb/...
% gb vendor fetch github.com/pkg/sftp
fetching recursive dependency github.com/kr/fs
fetching recursive dependency golang.org/x/crypto/ssh
snappy update
Traceback (most recent call last):
File "/usr/bin/snappy", line 25, in <module>
status = Main().__main__()
File "/usr/lib/python3/dist-packages/snappy/main.py", line 195, in __main__
return callback(args)
File "/usr/lib/python3/dist-packages/snappy/main.py", line 511, in _do_update
for pkg in ClickDataSource().upgradable_apps]
File "/usr/lib/python3/dist-packages/snappy/click.py", line 180, in upgradable_apps
all_updates_list = repo.get_upgradable()
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package bytes
import (
"io"
"math/rand"
"testing"
[root@alarm nacl_sdk]# ./naclsdk list
Traceback (most recent call last):
File "/root/bin/nacl_sdk/sdk_tools/sdk_update_main.py", line 424, in <module>
sys.exit(main(sys.argv[1:]))
File "/root/bin/nacl_sdk/sdk_tools/sdk_update_main.py", line 415, in main
return cmd(parser, argv[1:])
File "/root/bin/nacl_sdk/sdk_tools/sdk_update_main.py", line 189, in CMDlist
options, args = parser.parse_args(args)
File "/root/bin/nacl_sdk/sdk_tools/sdk_update_main.py", line 404, in Parse
UpdateSDKTools(options, args)
[root@alarm nacl_sdk]# ./naclsdk list
Traceback (most recent call last):
File "/root/bin/nacl_sdk/sdk_tools/sdk_update_main.py", line 424, in <module>
sys.exit(main(sys.argv[1:]))
File "/root/bin/nacl_sdk/sdk_tools/sdk_update_main.py", line 415, in main
return cmd(parser, argv[1:])
File "/root/bin/nacl_sdk/sdk_tools/sdk_update_main.py", line 189, in CMDlist
options, args = parser.parse_args(args)
File "/root/bin/nacl_sdk/sdk_tools/sdk_update_main.py", line 404, in Parse
UpdateSDKTools(options, args)
package future
// A Future represents the result of some asynchronous computation.
// Future returns the result of the work as an error, or nil if the work
// was performed successfully.
// Implementers must observe these invariants
// 1. There may be multiple concurrent callers, or Future may be called many
// times in sequence, it must always return the same value.
// 2. Future blocks until the work has been performed.
type Future func() error