github werf/werf v1.2.10+fix1
werf v1.2.10+fix1

latest releases: latest-signature, v1.1.35, v1.2.308...
3 years ago

Internals

Path matchers

  • Remove irrelevant legacy methods: TrimFileBaseFilepath and BaseFilepath
  • Redesign path matchers and divide them into simple entities
    • base path
    • include
    • exclude
    • dockerignore patterns
    • true
    • false
    • complex
    • multi
  • Add factory constructor for easy and clear use
  • Add the ID method to determine the path matcher parameters unambiguously
  • Fix multi path matcher the ShouldGoThrough method logic: the method returns true if the ShouldGoThrough method of at least one matcher returns true and the path partially or completely matched by others (IsDirOrSubmodulePathMatched returns true)
  • Complete test coverage

Git

  • Generalization of the calculating git repository files checksum
    • Simplify the GetOrCreateChecksum method
      • the method creates or gets a checksum from the cache
      • the previous logic was specific to git mapping (it is taken out and based on the new implementation)
    • The logic of stapel and dockerfile checksum calculation is reduced to one mechanism
  • Archive/Patch/LsTree: add the PathScope option to limit paths and determine the base directory/file (similar to <pathspec> in the git commands).

Other

  • [util] Fix IsSubpathOfBasePath helper
    • Incorrect processing of empty ("") and root ("/") basePath
    • Checking for identical paths returns true

Installation

Linux amd64

Darwin amd64

Windows amd64

Don't miss a new werf release

NewReleases is sending notifications on new releases.