Skip to content

Commit

Permalink
bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Dec 13, 2024
1 parent 109b948 commit f1a3aae
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 39 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/pushes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ permissions:
on:
push:
branches-ignore:
- 'exp'
- 'exp/*'
- 'exp-*'
- 'exp_*'
- 'wip'
- 'wip/*'
- 'wip-*'
- 'wip_*'
- "exp"
- "exp/*"
- "exp-*"
- "exp_*"
- "wip"
- "wip/*"
- "wip-*"
- "wip_*"
pull_request:

jobs:
Expand All @@ -38,13 +38,13 @@ jobs:
# The canonical entry is the only one where we run vet/lint/style checks.
# `experimental: true` entries do not cause the tests to fail.
include:
- go: 'stable'
- go: "stable"
os: ubuntu-latest
canonical: true
- go: 'stable'
- go: "stable"
os: windows-latest
canonical: false
- go: 'stable'
- go: "stable"
os: macos-latest
canonical: false

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
# From 2.7.6 onwards, we use the vX.Y.Z tag naming pattern.
# Before then, we used non-version tags.
# Going forward, for new releases, we only need to support v.
- 'v[0-9]*'
- "v[0-9]*"

permissions:
# Control the GITHUB_TOKEN permissions; GitHub's docs on which permission scopes control what are a little lacking.
Expand All @@ -21,7 +21,6 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -36,7 +35,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: "1.21"
check-latest: true

- name: Install cosign
Expand Down
8 changes: 3 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ release:
github:
owner: nats-io
name: nsc
name_template: '{{.Tag}}'
name_template: "{{.Tag}}"
draft: true

builds:
Expand Down Expand Up @@ -71,10 +71,10 @@ archives:
- none*

checksum:
name_template: 'SHA256SUMS-{{ .ProjectName }}.txt'
name_template: "SHA256SUMS-{{ .ProjectName }}.txt"

snapshot:
version_template: 'dev'
version_template: "dev"

signs:
- id: cosign
Expand All @@ -91,7 +91,6 @@ signs:
# signature: "${artifact}.ssh.sig"
# artifacts: checksum


brews:
- name: nsc
directory: Formula
Expand All @@ -110,4 +109,3 @@ brews:
system "#{bin}/nsc --version"
install: |
bin.install "nsc"
13 changes: 13 additions & 0 deletions cmd/reissueaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func createReissueAccountCmd() *cobra.Command {
Example: `nsc reissue account`,
Args: MaxArgs(0),
SilenceUsage: false,
Hidden: true,
RunE: func(cmd *cobra.Command, args []string) error {
if err := RunMaybeStorelessAction(cmd, args, &params); err != nil {
return err
Expand Down Expand Up @@ -82,6 +83,18 @@ func (p *reissueAccount) Run(ctx ActionCtx) (store.Status, error) {
ks := ctx.StoreCtx().KeyStore
accounts, err := s.ListSubContainers(store.Accounts)

// maybe filter to the account name provided
if ctx.CurrentCmd().Flags().Changed("account") {
var buf []string
name := ctx.StoreCtx().Account.Name
for _, n := range accounts {
if n == name {
buf = append(buf, n)
}
}
accounts = buf
}

if err != nil {
return nil, err
}
Expand Down
40 changes: 20 additions & 20 deletions dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

This file lists the dependencies used in this repository.

| Dependency | License |
|----------------------------------------------------------|-----------------------------------------|
| go | BSD 3-Clause "New" or "Revised" License |
| github.com/blang/semver | MIT |
| github.com/briandowns/spinner | Apache-2.0 |
| github.com/dustin/go-humanize | MIT |
| github.com/mitchellh/go-homedir | MIT |
| github.com/nats-io/cliprompts/v2 | Apache-2.0 |
| github.com/nats-io/jsm.go | Apache-2.0 |
| github.com/nats-io/jwt/v2 | Apache-2.0 |
| github.com/nats-io/nats-server/v2 | Apache-2.0 |
| github.com/nats-io/nats.go | Apache-2.0 |
| github.com/nats-io/nkeys | Apache-2.0 |
| github.com/nats-io/nuid | Apache-2.0 |
| github.com/rhysd/go-github-selfupdate/selfupdate | MIT |
| github.com/spf13/cobra | Apache-2.0 |
| github.com/spf13/pflag | BSD-3-Clause |
| github.com/stretchr/testify | MIT |
| github.com/xlab/tablewriter | Apache-2.0 |
| golang.org/x/text | BSD-3-Clause |
| Dependency | License |
| ------------------------------------------------ | --------------------------------------- |
| go | BSD 3-Clause "New" or "Revised" License |
| github.com/blang/semver | MIT |
| github.com/briandowns/spinner | Apache-2.0 |
| github.com/dustin/go-humanize | MIT |
| github.com/mitchellh/go-homedir | MIT |
| github.com/nats-io/cliprompts/v2 | Apache-2.0 |
| github.com/nats-io/jsm.go | Apache-2.0 |
| github.com/nats-io/jwt/v2 | Apache-2.0 |
| github.com/nats-io/nats-server/v2 | Apache-2.0 |
| github.com/nats-io/nats.go | Apache-2.0 |
| github.com/nats-io/nkeys | Apache-2.0 |
| github.com/nats-io/nuid | Apache-2.0 |
| github.com/rhysd/go-github-selfupdate/selfupdate | MIT |
| github.com/spf13/cobra | Apache-2.0 |
| github.com/spf13/pflag | BSD-3-Clause |
| github.com/stretchr/testify | MIT |
| github.com/xlab/tablewriter | Apache-2.0 |
| golang.org/x/text | BSD-3-Clause |

0 comments on commit f1a3aae

Please sign in to comment.