更新依赖和调整目录结构,未修改模块
This commit is contained in:
@@ -7,7 +7,7 @@ $ErrorActionPreference = "Stop"
|
||||
$workspaceRoot = Split-Path -Parent $PSScriptRoot
|
||||
Push-Location $workspaceRoot
|
||||
try {
|
||||
$unformatted = @(gofmt -l all module)
|
||||
$unformatted = @(gofmt -l pkgs module)
|
||||
if ($unformatted.Count -gt 0) {
|
||||
throw ("gofmt required:" + [Environment]::NewLine + ($unformatted -join [Environment]::NewLine))
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ readonly WORKSPACE_ROOT="$(cd -- "${SCRIPT_DIR}/.." && pwd)"
|
||||
|
||||
cd -- "${WORKSPACE_ROOT}"
|
||||
|
||||
unformatted="$(gofmt -l all module)"
|
||||
unformatted="$(gofmt -l pkgs module)"
|
||||
if [[ -n "${unformatted}" ]]; then
|
||||
printf 'error: gofmt required:\n%s\n' "${unformatted}" >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user