Skip to content

Commit

Permalink
gp --exclusion new flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sarao1310 committed Jul 6, 2023
1 parent e12d987 commit 90715f6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions artifactory/commands/golang/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ func archiveProject(writer io.Writer, dir, mod, version string, excludedPatterns
return err
}
excludePathPattern := fspatterns.PrepareExcludePathPattern(excludedPatterns, utils.GetPatternType(utils.PatternTypes{RegExp: false, Ant: false}), true)
//regexpPattern, err := regexp.Compile(excludePathPattern)
var files []gozip.File
err = filepath.Walk(dir, func(filePath string, info os.FileInfo, err error) error {
if err != nil {
Expand Down Expand Up @@ -123,7 +122,6 @@ func archiveProject(writer io.Writer, dir, mod, version string, excludedPatterns

if info.Mode().IsRegular() {
excluded, err := isPathExcluded(filePath, excludePathPattern)
//excluded := regexpPattern.MatchString(filePath)
if err != nil {
return err
}
Expand Down

0 comments on commit 90715f6

Please sign in to comment.