Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
fdbea757
Unverified
Commit
fdbea757
authored
Nov 12, 2018
by
Carl Bergquist
Committed by
GitHub
Nov 12, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14021 from mjtrangoni/fix-gofmt-issues
Fix gofmt issues
parents
46ebe245
89cd7471
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
.circleci/config.yml
+1
-1
build.go
+1
-1
scripts/build/release_publisher/externalrelease.go
+2
-2
scripts/build/release_publisher/localrelease.go
+2
-2
scripts/build/release_publisher/main.go
+3
-3
scripts/build/release_publisher/publisher_test.go
+1
-1
No files found.
.circleci/config.yml
View file @
fdbea757
...
@@ -91,7 +91,7 @@ jobs:
...
@@ -91,7 +91,7 @@ jobs:
-
run
:
'
go
get
-u
github.com/opennota/check/cmd/varcheck'
-
run
:
'
go
get
-u
github.com/opennota/check/cmd/varcheck'
-
run
:
-
run
:
name
:
run linters
name
:
run linters
command
:
'
gometalinter
--enable-gc
--vendor
--deadline
10m
--disable-all
--enable=deadcode
--enable=goconst
--enable=ineffassign
--enable=megacheck
--enable=structcheck
--enable=unconvert
--enable=varcheck
./...'
command
:
'
gometalinter
--enable-gc
--vendor
--deadline
10m
--disable-all
--enable=deadcode
--enable=goconst
--enable=
gofmt
--enable=
ineffassign
--enable=megacheck
--enable=structcheck
--enable=unconvert
--enable=varcheck
./...'
-
run
:
-
run
:
name
:
run go vet
name
:
run go vet
command
:
'
go
vet
./pkg/...'
command
:
'
go
vet
./pkg/...'
...
...
build.go
View file @
fdbea757
...
@@ -639,7 +639,7 @@ func shaFile(file string) error {
...
@@ -639,7 +639,7 @@ func shaFile(file string) error {
func
shortenBuildId
(
buildId
string
)
string
{
func
shortenBuildId
(
buildId
string
)
string
{
buildId
=
strings
.
Replace
(
buildId
,
"-"
,
""
,
-
1
)
buildId
=
strings
.
Replace
(
buildId
,
"-"
,
""
,
-
1
)
if
(
len
(
buildId
)
<
9
)
{
if
len
(
buildId
)
<
9
{
return
buildId
return
buildId
}
}
return
buildId
[
0
:
8
]
return
buildId
[
0
:
8
]
...
...
scripts/build/release_publisher/externalrelease.go
View file @
fdbea757
...
@@ -9,8 +9,8 @@ import (
...
@@ -9,8 +9,8 @@ import (
)
)
type
releaseFromExternalContent
struct
{
type
releaseFromExternalContent
struct
{
getter
urlGetter
getter
urlGetter
rawVersion
string
rawVersion
string
artifactConfigurations
[]
buildArtifact
artifactConfigurations
[]
buildArtifact
}
}
...
...
scripts/build/release_publisher/localrelease.go
View file @
fdbea757
...
@@ -13,7 +13,7 @@ import (
...
@@ -13,7 +13,7 @@ import (
)
)
type
releaseLocalSources
struct
{
type
releaseLocalSources
struct
{
path
string
path
string
artifactConfigurations
[]
buildArtifact
artifactConfigurations
[]
buildArtifact
}
}
...
@@ -36,7 +36,7 @@ func (r releaseLocalSources) prepareRelease(baseArchiveUrl, whatsNewUrl string,
...
@@ -36,7 +36,7 @@ func (r releaseLocalSources) prepareRelease(baseArchiveUrl, whatsNewUrl string,
type
buildData
struct
{
type
buildData
struct
{
version
string
version
string
builds
[]
build
builds
[]
build
}
}
func
(
r
releaseLocalSources
)
findBuilds
(
baseArchiveUrl
string
)
buildData
{
func
(
r
releaseLocalSources
)
findBuilds
(
baseArchiveUrl
string
)
buildData
{
...
...
scripts/build/release_publisher/main.go
View file @
fdbea757
...
@@ -44,13 +44,13 @@ func main() {
...
@@ -44,13 +44,13 @@ func main() {
if
fromLocal
{
if
fromLocal
{
path
,
_
:=
os
.
Getwd
()
path
,
_
:=
os
.
Getwd
()
builder
=
releaseLocalSources
{
builder
=
releaseLocalSources
{
path
:
path
,
path
:
path
,
artifactConfigurations
:
buildArtifactConfigurations
,
artifactConfigurations
:
buildArtifactConfigurations
,
}
}
}
else
{
}
else
{
builder
=
releaseFromExternalContent
{
builder
=
releaseFromExternalContent
{
getter
:
getHttpContents
{},
getter
:
getHttpContents
{},
rawVersion
:
version
,
rawVersion
:
version
,
artifactConfigurations
:
buildArtifactConfigurations
,
artifactConfigurations
:
buildArtifactConfigurations
,
}
}
}
}
...
...
scripts/build/release_publisher/publisher_test.go
View file @
fdbea757
...
@@ -60,7 +60,7 @@ func TestPreparingReleaseFromLocal(t *testing.T) {
...
@@ -60,7 +60,7 @@ func TestPreparingReleaseFromLocal(t *testing.T) {
var
builder
releaseBuilder
var
builder
releaseBuilder
testDataPath
:=
"testdata"
testDataPath
:=
"testdata"
builder
=
releaseLocalSources
{
builder
=
releaseLocalSources
{
path
:
testDataPath
,
path
:
testDataPath
,
artifactConfigurations
:
buildArtifactConfigurations
,
artifactConfigurations
:
buildArtifactConfigurations
,
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment