Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IncludePatterns and ExcludePatterns options for Copy #2082

Merged
merged 15 commits into from
Jun 1, 2021

Commits on May 26, 2021

  1. Add IncludePatterns and ExcludePatterns options for Copy

    Allow include and exclude patterns to be specified for the "copy" op,
    similarly to "local".
    
    Depends on tonistiigi/fsutil#101
    
    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    7660af2 View commit details
    Browse the repository at this point in the history
  2. Add capabilities for copy include/exclude patterns

    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    b545c28 View commit details
    Browse the repository at this point in the history
  3. Cache awareness of IncludePatterns/ExcludePatterns

    Consider IncludePatterns and ExcludePattern when calculating content
    hashes.
    
    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    626744c View commit details
    Browse the repository at this point in the history
  4. Include parent directories of include patterns in cache checksum

    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    7a35420 View commit details
    Browse the repository at this point in the history
  5. Update vendored fsutil fork

    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    32e52f1 View commit details
    Browse the repository at this point in the history
  6. Use require.ErrorIs

    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    8e6fc83 View commit details
    Browse the repository at this point in the history
  7. Revendor master version of fsutil

    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    743bc1b View commit details
    Browse the repository at this point in the history
  8. Seek to path if !wildcard

    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    b94fc7f View commit details
    Browse the repository at this point in the history
  9. return false, false, nil

    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    607dc1f View commit details
    Browse the repository at this point in the history
  10. Combine include/exclude caps into a single cap

    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    b27fc61 View commit details
    Browse the repository at this point in the history
  11. Exclude source dir metadata from checksum if source path ends in sepa…

    …rator
    
    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    fc20beb View commit details
    Browse the repository at this point in the history
  12. Add test case for added file which doesn't match include pattern

    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    5f90a18 View commit details
    Browse the repository at this point in the history
  13. Add test that non-included file does not invalidate cache

    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    cb536b2 View commit details
    Browse the repository at this point in the history
  14. Revendor updated fsutils fork; use same logic for IncludePatterns and…

    … ExcludePatterns
    
    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    7c13af3 View commit details
    Browse the repository at this point in the history
  15. Back to master version of fsutil

    Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
    aaronlehmann committed May 26, 2021
    Configuration menu
    Copy the full SHA
    6f5ea71 View commit details
    Browse the repository at this point in the history