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

introduce ignore attribute for watch triggers #10385

Merged
merged 1 commit into from
Mar 21, 2023
Merged

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Mar 20, 2023

What I did
Introduced ability to exclude some files from sync when running compose watch.

(not mandatory) A picture of a cute animal, if possible in relation to what you did

IMG_5907

@codecov
Copy link

codecov bot commented Mar 20, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.13 ⚠️

Comparison is base (6c1f06e) 53.37% compared to head (03620cf) 53.24%.

❗ Current head 03620cf differs from pull request most recent head daad25b. Consider uploading reports for the commit daad25b to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##               v2   #10385      +/-   ##
==========================================
- Coverage   53.37%   53.24%   -0.13%     
==========================================
  Files         104      104              
  Lines        8974     8960      -14     
==========================================
- Hits         4790     4771      -19     
- Misses       3664     3668       +4     
- Partials      520      521       +1     
Impacted Files Coverage Δ
pkg/compose/watch.go 0.00% <0.00%> (ø)

... and 6 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ndeloof ndeloof force-pushed the watch_ignores branch 2 times, most recently from 5f7685f to 6cfe2de Compare March 20, 2023 11:36
@ndeloof ndeloof requested review from a team, nicksieger, StefanScherer, ulyssessouza, glours, milas and laurazard and removed request for a team March 20, 2023 11:44
Copy link
Member

@StefanScherer StefanScherer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Tested with the compose-watch-samples reactjs example, with and addition in the compose.yaml file.

services:
  myapp:
    build: .
    ports:
      - '2170:3000'
    x-develop:
      watch:
        - path: package.json
          action: rebuild
        - path: package-lock.json
          action: rebuild
        - path: src/
          action: sync
          target: /app/src
          ignore: 
            - new.swp
            - node_modules/

@ndeloof ndeloof force-pushed the watch_ignores branch 2 times, most recently from a2ce4c5 to 0bfd3f8 Compare March 21, 2023 16:29
@ndeloof ndeloof enabled auto-merge (rebase) March 21, 2023 16:42
@ndeloof ndeloof force-pushed the watch_ignores branch 3 times, most recently from 00e9d28 to 18e3c15 Compare March 21, 2023 17:12
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof merged commit a11515e into docker:v2 Mar 21, 2023
@ndeloof ndeloof deleted the watch_ignores branch March 21, 2023 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants