Skip to content

Commit

Permalink
Prevent BC breaks by aliasing a moved type
Browse files Browse the repository at this point in the history
  • Loading branch information
danhunsaker committed Mar 18, 2023
1 parent 1d1e48a commit 151e8b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions altsrc/input_source_context.go
@@ -0,0 +1,5 @@
package altsrc

import "github.com/urfave/cli/v2"

type InputSourceContext cli.InputSourceContext
2 changes: 2 additions & 0 deletions godoc-current.txt
Expand Up @@ -2521,6 +2521,8 @@ func (f *GenericFlag) Apply(set *flag.FlagSet) error
func (f *GenericFlag) ApplyInputSourceValue(cCtx *cli.Context, isc cli.InputSourceContext) error
ApplyInputSourceValue applies a generic value to the flagSet if required

type InputSourceContext cli.InputSourceContext

type Int64Flag struct {
*cli.Int64Flag
// Has unexported fields.
Expand Down
2 changes: 2 additions & 0 deletions testdata/godoc-v2.x.txt
Expand Up @@ -2521,6 +2521,8 @@ func (f *GenericFlag) Apply(set *flag.FlagSet) error
func (f *GenericFlag) ApplyInputSourceValue(cCtx *cli.Context, isc cli.InputSourceContext) error
ApplyInputSourceValue applies a generic value to the flagSet if required

type InputSourceContext cli.InputSourceContext

type Int64Flag struct {
*cli.Int64Flag
// Has unexported fields.
Expand Down

0 comments on commit 151e8b4

Please sign in to comment.