forked from tursom/go-sdk-filer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 481cedb
Showing
7,813 changed files
with
2,290,065 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright 2012 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. | ||
|
||
# Run go tool dist to install a command. | ||
# The -v causes dist to print the name of each directory as it runs. | ||
# The -vv causes dist to print each build command as it runs. | ||
# go tool dist clean cleans all directories, not just this one, | ||
# but it's as close as we can get. | ||
|
||
# Default target (first). | ||
install: | ||
go tool dist install -v | ||
|
||
verbose: | ||
go tool dist install -vv | ||
|
||
clean: | ||
go tool dist clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Vendoring in std and cmd | ||
======================== | ||
|
||
The Go command maintains copies of external packages needed by the | ||
standard library in the src/vendor and src/cmd/vendor directories. | ||
|
||
In GOPATH mode, imports of vendored packages are resolved to these | ||
directories following normal vendor directory logic | ||
(see golang.org/s/go15vendor). | ||
|
||
In module mode, std and cmd are modules (defined in src/go.mod and | ||
src/cmd/go.mod). When a package outside std or cmd is imported | ||
by a package inside std or cmd, the import path is interpreted | ||
as if it had a "vendor/" prefix. For example, within "crypto/tls", | ||
an import of "golang.org/x/crypto/cryptobyte" resolves to | ||
"vendor/golang.org/x/crypto/cryptobyte". When a package with the | ||
same path is imported from a package outside std or cmd, it will | ||
be resolved normally. Consequently, a binary may be built with two | ||
copies of a package at different versions if the package is | ||
imported normally and vendored by the standard library. | ||
|
||
Vendored packages are internally renamed with a "vendor/" prefix | ||
to preserve the invariant that all packages have distinct paths. | ||
This is necessary to avoid compiler and linker conflicts. Adding | ||
a "vendor/" prefix also maintains the invariant that standard | ||
library packages begin with a dotless path element. | ||
|
||
The module requirements of std and cmd do not influence version | ||
selection in other modules. They are only considered when running | ||
module commands like 'go get' and 'go mod vendor' from a directory | ||
in GOROOT/src. | ||
|
||
Maintaining vendor directories | ||
============================== | ||
|
||
Before updating vendor directories, ensure that module mode is enabled. | ||
Make sure GO111MODULE=off is not set ('on' or 'auto' should work). | ||
|
||
Requirements may be added, updated, and removed with 'go get'. | ||
The vendor directory may be updated with 'go mod vendor'. | ||
A typical sequence might be: | ||
|
||
cd src | ||
go get -d golang.org/x/net@latest | ||
go mod tidy | ||
go mod vendor | ||
|
||
Use caution when passing '-u' to 'go get'. The '-u' flag updates | ||
modules providing all transitively imported packages, not only | ||
the module providing the target package. | ||
|
||
Note that 'go mod vendor' only copies packages that are transitively | ||
imported by packages in the current module. If a new package is needed, | ||
it should be imported before running 'go mod vendor'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
# 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. | ||
|
||
set -e | ||
if [ ! -f make.bash ]; then | ||
echo 'all.bash must be run from $GOROOT/src' 1>&2 | ||
exit 1 | ||
fi | ||
OLDPATH="$PATH" | ||
. ./make.bash "$@" --no-banner | ||
bash run.bash --no-rebuild | ||
PATH="$OLDPATH" | ||
$GOTOOLDIR/dist banner # print build info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
:: Copyright 2012 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. | ||
|
||
@echo off | ||
|
||
setlocal | ||
|
||
if exist make.bat goto ok | ||
echo all.bat must be run from go\src | ||
:: cannot exit: would kill parent command interpreter | ||
goto end | ||
:ok | ||
|
||
set OLDPATH=%PATH% | ||
call make.bat --no-banner --no-local | ||
if %GOBUILDFAIL%==1 goto end | ||
call run.bat --no-rebuild --no-local | ||
if %GOBUILDFAIL%==1 goto end | ||
:: we must restore %PATH% before running "dist banner" so that the latter | ||
:: can get the original %PATH% and give suggestion to add %GOROOT%/bin | ||
:: to %PATH% if necessary. | ||
set PATH=%OLDPATH% | ||
"%GOTOOLDIR%/dist" banner | ||
|
||
:end | ||
if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/rc -e | ||
# Copyright 2012 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. | ||
|
||
rfork n | ||
|
||
if(! test -f make.rc){ | ||
echo 'all.rc must be run from $GOROOT/src' >[1=2] | ||
exit wrongdir | ||
} | ||
|
||
. ./make.rc --no-banner $* | ||
bind -b $GOROOT/bin /bin | ||
./run.rc --no-rebuild | ||
$GOTOOLDIR/dist banner # print build info |
Oops, something went wrong.