Skip to content

Commit

Permalink
remove last changes
Browse files Browse the repository at this point in the history
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
  • Loading branch information
officialasishkumar committed Aug 18, 2024
1 parent 53b67a2 commit 56b3ff8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/cmd/cmd_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ func KpmAdd(c *cli.Context, kpmcli *client.KpmClient) error {
return err
}

if addOpts.RegistryOpts.Git.Package != "" {
kpmcli.SetPackage(addOpts.RegistryOpts.Git.Package)
}

if addOpts.RegistryOpts.Local != nil {
absAddPath, err := filepath.Abs(addOpts.RegistryOpts.Local.Path)
if err != nil {
Expand Down Expand Up @@ -143,6 +139,10 @@ func onlyOnceOption(c *cli.Context, name string) (string, *reporter.KpmEvent) {
func parseAddOptions(c *cli.Context, kpmcli *client.KpmClient, localPath string) (*opt.AddOptions, error) {
noSumCheck := c.Bool(FLAG_NO_SUM_CHECK)
newPkgName := c.String("rename")
pkg := c.StringSlice("package")
if pkg[0] != "" {
kpmcli.SetPackage(pkg[0])
}
// parse from 'kpm add -git https://xxx/xxx.git -tag v0.0.1'.
if c.NArg() == 0 {
gitOpts, err := parseGitRegistryOptions(c)
Expand Down

0 comments on commit 56b3ff8

Please sign in to comment.