Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Bump golang.org/x/sync from 0.7.0 to 0.8.0 in the golang group #1252

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ require (
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.9.0
golang.org/x/sync v0.7.0
golang.org/x/sync v0.8.0
gopkg.in/yaml.v3 v3.0.1
)

4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -66,8 +66,8 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=
golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=

Unchanged files with check annotations Beta

)
var (
ReasonSkip = *color.New(color.FgYellow)

Check failure on line 13 in cmd/log.go

GitHub Actions / CI Build

exported var ReasonSkip should have comment or be unexported
ReasonError = *color.New(color.FgRed)
ReasonRemoveTriggered = *color.New(color.FgGreen)
ReasonWaitPending = *color.New(color.FgBlue)
)
var (
ColorRegion = *color.New(color.Bold)

Check failure on line 21 in cmd/log.go

GitHub Actions / CI Build

exported var ColorRegion should have comment or be unexported
ColorResourceType = *color.New()
ColorResourceID = *color.New(color.Bold)
ColorResourceProperties = *color.New(color.Italic)
)
// Format the resource properties in sorted order ready for printing.

Check failure on line 27 in cmd/log.go

GitHub Actions / CI Build

comment on exported function Sorted should be of the form "Sorted ..."
// This ensures that multiple runs of aws-nuke produce stable output so
// that they can be compared with each other.
func Sorted(m map[string]string) string {
return fmt.Sprintf("[%s]", strings.Join(sorted, ", "))
}
func Log(region *Region, resourceType string, r resources.Resource, c color.Color, msg string) {

Check failure on line 43 in cmd/log.go

GitHub Actions / CI Build

exported function Log should have comment or be unexported
ColorRegion.Printf("%s", region.Name)
fmt.Printf(" - ")
ColorResourceType.Print(resourceType)
"github.com/sirupsen/logrus"
)
type Nuke struct {

Check failure on line 14 in cmd/nuke.go

GitHub Actions / CI Build

exported type Nuke should have comment or be unexported
Parameters NukeParameters
Account awsutil.Account
Config *config.Nuke
items Queue
}
func NewNuke(params NukeParameters, account awsutil.Account) *Nuke {

Check failure on line 24 in cmd/nuke.go

GitHub Actions / CI Build

exported function NewNuke should have comment or be unexported
n := Nuke{
Parameters: params,
Account: account,
return &n
}
func (n *Nuke) Run() error {

Check failure on line 33 in cmd/nuke.go

GitHub Actions / CI Build

exported method Nuke.Run should have comment or be unexported
var err error
if n.Parameters.ForceSleep < 3 && n.Parameters.NoDryRun {
return fmt.Errorf("Value for --force-sleep cannot be less than 3 seconds if --no-dry-run is set. This is for your own protection.")

Check failure on line 37 in cmd/nuke.go

GitHub Actions / CI Build

error strings should not be capitalized or end with punctuation or a newline
}
forceSleep := time.Duration(n.Parameters.ForceSleep) * time.Second
}
if n.Parameters.MaxWaitRetries != 0 && n.items.Count(ItemStateWaiting, ItemStatePending) > 0 && n.items.Count(ItemStateNew) == 0 {
if waitingCount >= n.Parameters.MaxWaitRetries {
return fmt.Errorf("Max wait retries of %d exceeded.\n\n", n.Parameters.MaxWaitRetries)

Check failure on line 118 in cmd/nuke.go

GitHub Actions / CI Build

error strings should not be capitalized or end with punctuation or a newline
}
waitingCount = waitingCount + 1
} else {
return nil
}
func (n *Nuke) Scan() error {

Check failure on line 137 in cmd/nuke.go

GitHub Actions / CI Build

exported method Nuke.Scan should have comment or be unexported
accountConfig := n.Config.Accounts[n.Account.ID()]
resourceTypes := ResolveResourceTypes(