Permalink
Browse files

vendor: Update dependencies

With:

  $ rm -rf vendor
  $ make update-deps

Signed-off-by: W. Trevor King <wking@tremily.us>
  • Loading branch information...
1 parent dae341e commit 42b0bea31a10ef1ec7299a377c21c68754adb88a @wking wking committed Sep 21, 2016
Showing with 102 additions and 6,177 deletions.
  1. +4 −14 glide.lock
  2. +0 −13 vendor/github.com/inconshreveable/mousetrap/LICENSE
  3. +0 −15 vendor/github.com/inconshreveable/mousetrap/trap_others.go
  4. +0 −98 vendor/github.com/inconshreveable/mousetrap/trap_windows.go
  5. +0 −46 vendor/github.com/inconshreveable/mousetrap/trap_windows_1.4.go
  6. +0 −191 vendor/github.com/opencontainers/runtime-spec/LICENSE
  7. +0 −471 vendor/github.com/opencontainers/runtime-spec/specs-go/config.go
  8. +0 −17 vendor/github.com/opencontainers/runtime-spec/specs-go/state.go
  9. +0 −18 vendor/github.com/opencontainers/runtime-spec/specs-go/version.go
  10. +85 −58 vendor/github.com/pkg/errors/errors.go
  11. +13 −0 vendor/github.com/pkg/errors/stack.go
  12. +0 −174 vendor/github.com/spf13/cobra/LICENSE.txt
  13. +0 −630 vendor/github.com/spf13/cobra/bash_completions.go
  14. +0 −175 vendor/github.com/spf13/cobra/cobra.go
  15. +0 −1,256 vendor/github.com/spf13/cobra/command.go
  16. +0 −5 vendor/github.com/spf13/cobra/command_notwin.go
  17. +0 −26 vendor/github.com/spf13/cobra/command_win.go
  18. +0 −28 vendor/github.com/spf13/pflag/LICENSE
  19. +0 −97 vendor/github.com/spf13/pflag/bool.go
  20. +0 −97 vendor/github.com/spf13/pflag/count.go
  21. +0 −86 vendor/github.com/spf13/pflag/duration.go
  22. +0 −934 vendor/github.com/spf13/pflag/flag.go
  23. +0 −91 vendor/github.com/spf13/pflag/float32.go
  24. +0 −87 vendor/github.com/spf13/pflag/float64.go
  25. +0 −104 vendor/github.com/spf13/pflag/golangflag.go
  26. +0 −87 vendor/github.com/spf13/pflag/int.go
  27. +0 −91 vendor/github.com/spf13/pflag/int32.go
  28. +0 −87 vendor/github.com/spf13/pflag/int64.go
  29. +0 −91 vendor/github.com/spf13/pflag/int8.go
  30. +0 −128 vendor/github.com/spf13/pflag/int_slice.go
  31. +0 −96 vendor/github.com/spf13/pflag/ip.go
  32. +0 −122 vendor/github.com/spf13/pflag/ipmask.go
  33. +0 −100 vendor/github.com/spf13/pflag/ipnet.go
  34. +0 −82 vendor/github.com/spf13/pflag/string.go
  35. +0 −111 vendor/github.com/spf13/pflag/string_slice.go
  36. +0 −91 vendor/github.com/spf13/pflag/uint.go
  37. +0 −89 vendor/github.com/spf13/pflag/uint16.go
  38. +0 −89 vendor/github.com/spf13/pflag/uint32.go
  39. +0 −91 vendor/github.com/spf13/pflag/uint64.go
  40. +0 −91 vendor/github.com/spf13/pflag/uint8.go
View
@@ -1,30 +1,20 @@
-hash: 223985f204597c6ed49657a4fc38273f683d40c39e8d48d13ed0dbf632107427
-updated: 2016-07-22T16:40:50.020731917+02:00
+hash: 61c12670baff1b8a58d601c5afeae07ac831ef85cb67de3d4823ccdbb0085f56
+updated: 2016-09-21T13:59:32.039338003-07:00
imports:
-- name: github.com/inconshreveable/mousetrap
- version: 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75
-- name: github.com/opencontainers/runtime-spec
- version: 06479209bdc0d4135911688c18157bd39bd99c22
- subpackages:
- - specs-go
- name: github.com/pkg/errors
- version: 01fa4104b9c248c8945d14d9f128454d5b28d595
+ version: 17b591df37844cde689f4d5813e5cea0927d8dd2
- name: github.com/russross/blackfriday
version: 0b647d0506a698cca42caca173e55559b12a69f2
- name: github.com/shurcooL/sanitized_anchor_name
version: 10ef21a441db47d8b13ebcc5fd2310f636973c77
-- name: github.com/spf13/cobra
- version: f62e98d28ab7ad31d707ba837a966378465c7b57
-- name: github.com/spf13/pflag
- version: 1560c1005499d61b80f865c04d39ca7505bf7f0b
- name: github.com/xeipuuv/gojsonpointer
version: e0fe6f68307607d540ed8eac07a342c33fa1b54a
- name: github.com/xeipuuv/gojsonreference
version: e02fc20de94c78484cd5ffb007f8af96be030a45
- name: github.com/xeipuuv/gojsonschema
version: d5336c75940ef31c9ceeb0ae64cf92944bccb4ee
- name: go4.org
- version: 85455cb60c902182109ca27131042a41bc4cb85d
+ version: 27882e489dcd7ade28c033b82c6d498661c4dc42
subpackages:
- errorutil
testImports: []
@@ -1,13 +0,0 @@
-Copyright 2014 Alan Shreve
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
@@ -1,15 +0,0 @@
-// +build !windows
-
-package mousetrap
-
-// StartedByExplorer returns true if the program was invoked by the user
-// double-clicking on the executable from explorer.exe
-//
-// It is conservative and returns false if any of the internal calls fail.
-// It does not guarantee that the program was run from a terminal. It only can tell you
-// whether it was launched from explorer.exe
-//
-// On non-Windows platforms, it always returns false.
-func StartedByExplorer() bool {
- return false
-}
@@ -1,98 +0,0 @@
-// +build windows
-// +build !go1.4
-
-package mousetrap
-
-import (
- "fmt"
- "os"
- "syscall"
- "unsafe"
-)
-
-const (
- // defined by the Win32 API
- th32cs_snapprocess uintptr = 0x2
-)
-
-var (
- kernel = syscall.MustLoadDLL("kernel32.dll")
- CreateToolhelp32Snapshot = kernel.MustFindProc("CreateToolhelp32Snapshot")
- Process32First = kernel.MustFindProc("Process32FirstW")
- Process32Next = kernel.MustFindProc("Process32NextW")
-)
-
-// ProcessEntry32 structure defined by the Win32 API
-type processEntry32 struct {
- dwSize uint32
- cntUsage uint32
- th32ProcessID uint32
- th32DefaultHeapID int
- th32ModuleID uint32
- cntThreads uint32
- th32ParentProcessID uint32
- pcPriClassBase int32
- dwFlags uint32
- szExeFile [syscall.MAX_PATH]uint16
-}
-
-func getProcessEntry(pid int) (pe *processEntry32, err error) {
- snapshot, _, e1 := CreateToolhelp32Snapshot.Call(th32cs_snapprocess, uintptr(0))
- if snapshot == uintptr(syscall.InvalidHandle) {
- err = fmt.Errorf("CreateToolhelp32Snapshot: %v", e1)
- return
- }
- defer syscall.CloseHandle(syscall.Handle(snapshot))
-
- var processEntry processEntry32
- processEntry.dwSize = uint32(unsafe.Sizeof(processEntry))
- ok, _, e1 := Process32First.Call(snapshot, uintptr(unsafe.Pointer(&processEntry)))
- if ok == 0 {
- err = fmt.Errorf("Process32First: %v", e1)
- return
- }
-
- for {
- if processEntry.th32ProcessID == uint32(pid) {
- pe = &processEntry
- return
- }
-
- ok, _, e1 = Process32Next.Call(snapshot, uintptr(unsafe.Pointer(&processEntry)))
- if ok == 0 {
- err = fmt.Errorf("Process32Next: %v", e1)
- return
- }
- }
-}
-
-func getppid() (pid int, err error) {
- pe, err := getProcessEntry(os.Getpid())
- if err != nil {
- return
- }
-
- pid = int(pe.th32ParentProcessID)
- return
-}
-
-// StartedByExplorer returns true if the program was invoked by the user double-clicking
-// on the executable from explorer.exe
-//
-// It is conservative and returns false if any of the internal calls fail.
-// It does not guarantee that the program was run from a terminal. It only can tell you
-// whether it was launched from explorer.exe
-func StartedByExplorer() bool {
- ppid, err := getppid()
- if err != nil {
- return false
- }
-
- pe, err := getProcessEntry(ppid)
- if err != nil {
- return false
- }
-
- name := syscall.UTF16ToString(pe.szExeFile[:])
- return name == "explorer.exe"
-}
@@ -1,46 +0,0 @@
-// +build windows
-// +build go1.4
-
-package mousetrap
-
-import (
- "os"
- "syscall"
- "unsafe"
-)
-
-func getProcessEntry(pid int) (*syscall.ProcessEntry32, error) {
- snapshot, err := syscall.CreateToolhelp32Snapshot(syscall.TH32CS_SNAPPROCESS, 0)
- if err != nil {
- return nil, err
- }
- defer syscall.CloseHandle(snapshot)
- var procEntry syscall.ProcessEntry32
- procEntry.Size = uint32(unsafe.Sizeof(procEntry))
- if err = syscall.Process32First(snapshot, &procEntry); err != nil {
- return nil, err
- }
- for {
- if procEntry.ProcessID == uint32(pid) {
- return &procEntry, nil
- }
- err = syscall.Process32Next(snapshot, &procEntry)
- if err != nil {
- return nil, err
- }
- }
-}
-
-// StartedByExplorer returns true if the program was invoked by the user double-clicking
-// on the executable from explorer.exe
-//
-// It is conservative and returns false if any of the internal calls fail.
-// It does not guarantee that the program was run from a terminal. It only can tell you
-// whether it was launched from explorer.exe
-func StartedByExplorer() bool {
- pe, err := getProcessEntry(os.Getppid())
- if err != nil {
- return false
- }
- return "explorer.exe" == syscall.UTF16ToString(pe.ExeFile[:])
-}
Oops, something went wrong.

0 comments on commit 42b0bea

Please sign in to comment.