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

Running with --watch does not respect task directory when registering sources to watch #484

Closed
codemonkeysoftware opened this issue May 8, 2021 · 0 comments · Fixed by #485
Labels
type: bug Something not working as intended.

Comments

@codemonkeysoftware
Copy link
Contributor

  • Task version: v3.4.2
  • Operating System: Windows
version: '3'
dotenv: ['app/.env']

tasks:
  build-js:
    dir: app/js
    sources:
      - controllers/*.ts
      - application.ts
      - package.json
      - webpack.config.js
      - tsconfig.json
    cmds:
      - npm run webpack

When running the build-js task, Task correctly recognizes the sources for currency checks. However, when running it with the --watch flag, it gives an error task: application.ts: file does not exist. Looking at the code, the watch file globbing function does not respect the task directory (https://github.com/go-task/task/blob/master/watch.go#L131) while the internal status checker does (https://github.com/go-task/task/blob/master/internal/status/glob.go#L16).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something not working as intended.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant