1 Star 0 Fork 0

liboxwz/dep

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
cmd/dep
docs
gps
_testdata
internal/pb
paths
pkgtree
verify
bridge.go
cmd.go
cmd_unix.go
cmd_windows.go
constraint.go
constraint_test.go
deduce.go
deduce_test.go
discovery.go
doc.go
error.go
example.go
filesystem.go
filesystem_test.go
identifier.go
lock.go
lock_test.go
manager_test.go
manifest.go
manifest_test.go
maybe_source.go
maybe_source_test.go
metrics.go
prune.go
prune_test.go
rootdata.go
rootdata_test.go
satisfy.go
selection.go
selection_test.go
solution.go
solution_test.go
solve_basic_test.go
solve_bimodal_test.go
solve_failures.go
solve_test.go
solver.go
solver_inputs_test.go
source.go
source_cache.go
source_cache_bolt.go
source_cache_bolt_encode.go
source_cache_bolt_encode_test.go
source_cache_bolt_test.go
source_cache_multi.go
source_cache_test.go
source_errors.go
source_errors_test.go
source_manager.go
source_manager_test.go
source_test.go
strings.go
trace.go
typed_radix.go
typed_radix_test.go
vcs_repo.go
vcs_repo_test.go
vcs_source.go
vcs_source_test.go
vcs_version.go
vcs_version_test.go
version.go
version_queue.go
version_queue_test.go
version_test.go
hack
internal
testdata
vendor
website
.codeclimate.yml
.gitattributes
.gitignore
.travis.yml
AUTHORS
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
CONTRIBUTORS
Gopkg.lock
Gopkg.toml
LICENSE
MAINTAINERS.md
Makefile
PATENTS
README.md
analyzer.go
analyzer_notwindows_test.go
analyzer_test.go
analyzer_windows_test.go
appveyor.yml
context.go
context_test.go
doc.go
install.sh
lock.go
lock_test.go
manifest.go
manifest_test.go
project.go
project_test.go
test_project_context_test.go
txn_writer.go
txn_writer_test.go
克隆/下载
cmd.go 820 Bytes
一键复制 编辑 原始数据 按行查看 历史
// Copyright 2017 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 gps
import (
"os"
)
func (c cmd) Args() []string {
return c.Cmd.Args
}
func (c cmd) SetDir(dir string) {
c.Cmd.Dir = dir
}
func (c cmd) SetEnv(env []string) {
c.Cmd.Env = env
}
func init() {
// For our git repositories, we very much assume a "regular" topology.
// Therefore, no value for the following variables can be relevant to
// us. Unsetting globally properly propagates to libraries like
// github.com/Masterminds/vcs, which cannot make the same assumption in
// general.
parasiteGitVars := []string{"GIT_DIR", "GIT_INDEX_FILE", "GIT_OBJECT_DIRECTORY", "GIT_WORK_TREE"}
for _, e := range parasiteGitVars {
os.Unsetenv(e)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liboxwz/dep.git
git@gitee.com:liboxwz/dep.git
liboxwz
dep
dep
master

搜索帮助