Skip to content

Releases: moby/patternmatcher

v0.6.0

22 Aug 22:00
v0.6.0
347bb8d
Compare
Choose a tag to compare

This release integrates the "frontend/dockerfile/dockerignore" package
from github.com/moby/buildkit at commit 9da03ce42beb47d0d0a34c68ea90cac793b79851

What's Changed

  • gha: update golangci-lint to v1.54, actions/setup-go@v4, and go1.20.x #2
  • integrate frontend/dockerfile/dockerignore from BuildKit #1

Full Changelog: v0.5.0...v0.6.0

v0.5.0

30 Sep 21:20
v0.5.0
c5e4b22
Compare
Choose a tag to compare

Initial release of this module. This module was extracted from pkg/fileutils
in the github.com/docker/docker/ repository, from this commit:
https://github.com/moby/moby/tree/a392e6cecb815a7b2b784efd2dd40d04df50e580/pkg/fileutils

The package was moved to a separate repository, using the steps below:

# install filter-repo (https://github.com/newren/git-filter-repo/blob/main/INSTALL.md)
brew install git-filter-repo

cd ~/projects

# create a temporary clone of docker
git clone https://github.com/docker/docker.git moby_patternmatcher_temp
cd moby_patternmatcher_temp

# for reference
git rev-parse HEAD
# --> a392e6cecb815a7b2b784efd2dd40d04df50e580

# remove all code, except for the files we need, and rename the files
git filter-repo \
    --path LICENSE \
    --path NOTICE \
    --path-match pkg/fileutils/fileutils.go \
    --path-match pkg/fileutils/fileutils_test.go \
    --path-rename pkg/fileutils/fileutils.go:patternmatcher.go \
    --path-rename pkg/fileutils/fileutils_test.go:patternmatcher_test.go

# remove canonical imports
git revert -s -S 06258607c121980cf8cabe9bd295012540d9081a

# initialize module
go mod init github.com/moby/patternmatcher
go mod tidy

After this;

  • a go.mod was added, and the package names renamed
  • functions unrelated to matching were removed
  • NewPatternMatcher was renamed to New
  • GitHub actions were added