#8 delete parse env in gitea.
This commit is contained in:
@@ -257,6 +257,7 @@ func Execute(ctx context.Context, gitSource source.SourceControl, mvs map[string
|
||||
}
|
||||
}
|
||||
logger.Debugf(ctx, fmt.Sprintf("Update successful for %s", path))
|
||||
return
|
||||
}
|
||||
for _, branch := range cfg.Branches { // update all dep
|
||||
for path, mod = range mvs {
|
||||
@@ -278,6 +279,7 @@ func Execute(ctx context.Context, gitSource source.SourceControl, mvs map[string
|
||||
}
|
||||
}
|
||||
logger.Debugf(ctx, fmt.Sprintf("Close successful for %s", path))
|
||||
return
|
||||
}
|
||||
for _, branch := range cfg.Branches {
|
||||
logger.Info(ctx, fmt.Sprintf("Start getting pr for %s", branch))
|
||||
@@ -335,7 +337,6 @@ func getRepoMgmt(ctx context.Context, cfg *configcli.Config) error {
|
||||
if err != nil {
|
||||
logger.Fatal(ctx, fmt.Sprintf("pkgdash/main can t get info about user: %s", err))
|
||||
}
|
||||
|
||||
n, err := netrc.Parse(filepath.Join(usr.HomeDir, ".netrc"))
|
||||
if err != nil {
|
||||
logger.Error(ctx, "pkgdash/main can t parse .netrc: %s", err)
|
||||
@@ -347,7 +348,6 @@ func getRepoMgmt(ctx context.Context, cfg *configcli.Config) error {
|
||||
if cfg.Source.Token == "" {
|
||||
cfg.Source.Token = n.Machine(cfg.Source.APIURL).Get("password")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user