Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Psentee
API
Commits
1d7b9b97
Commit
1d7b9b97
authored
1 year ago
by
rahix
Browse files
Options
Downloads
Patches
Plain Diff
Show first error instead of last when no working version is published yet
parent
b1ee054a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
server_apps.go
+7
-0
7 additions, 0 deletions
server_apps.go
with
7 additions
and
0 deletions
server_apps.go
+
7
−
0
View file @
1d7b9b97
...
@@ -343,6 +343,7 @@ func (s *server) getAppInfo(ctx context.Context, pathInRepo, repo string) (*appI
...
@@ -343,6 +343,7 @@ func (s *server) getAppInfo(ctx context.Context, pathInRepo, repo string) (*appI
highestVer
:=
0
highestVer
:=
0
highsetVerNil
:=
true
highsetVerNil
:=
true
firstTime
:=
make
(
map
[
int
]
*
appInfo
)
firstTime
:=
make
(
map
[
int
]
*
appInfo
)
var
firstErr
error
=
nil
for
{
for
{
info
,
err
:=
s
.
parseAppToml
(
ctx
,
pathInRepo
,
obj
)
info
,
err
:=
s
.
parseAppToml
(
ctx
,
pathInRepo
,
obj
)
if
err
==
nil
{
if
err
==
nil
{
...
@@ -354,6 +355,9 @@ func (s *server) getAppInfo(ctx context.Context, pathInRepo, repo string) (*appI
...
@@ -354,6 +355,9 @@ func (s *server) getAppInfo(ctx context.Context, pathInRepo, repo string) (*appI
}
}
}
else
{
}
else
{
log
.
Printf
(
"%s@%s: %v"
,
repo
,
obj
.
Hash
.
String
(),
err
)
log
.
Printf
(
"%s@%s: %v"
,
repo
,
obj
.
Hash
.
String
(),
err
)
if
firstErr
==
nil
{
firstErr
=
err
}
}
}
if
len
(
obj
.
ParentHashes
)
==
0
{
if
len
(
obj
.
ParentHashes
)
==
0
{
break
break
...
@@ -365,6 +369,9 @@ func (s *server) getAppInfo(ctx context.Context, pathInRepo, repo string) (*appI
...
@@ -365,6 +369,9 @@ func (s *server) getAppInfo(ctx context.Context, pathInRepo, repo string) (*appI
}
}
if
highsetVerNil
{
if
highsetVerNil
{
if
firstErr
!=
nil
{
return
nil
,
firstErr
}
return
nil
,
fmt
.
Errorf
(
"no `version` field in `flow3r.toml`"
)
return
nil
,
fmt
.
Errorf
(
"no `version` field in `flow3r.toml`"
)
}
}
stars
,
err
:=
s
.
getStars
(
ctx
,
repo
)
stars
,
err
:=
s
.
getStars
(
ctx
,
repo
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment