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

Query on --changed-files-index option #1808

Open
3 tasks
VvinayakK opened this issue Jan 12, 2024 · 3 comments
Open
3 tasks

Query on --changed-files-index option #1808

VvinayakK opened this issue Jan 12, 2024 · 3 comments

Comments

@VvinayakK
Copy link

  • Infer version 1.0.0
  • Ubuntu 18.04.6
  • infer run --changed-files-index change_list.txt --keep-going

I am trying to run infer on the C makefile project and trying to do incremental analysis only for the changed files.

How to input the changed files in change_list.txt when there are different directories in the project?
The guide/tutorial is not clear about this.

Currently my change_list.txt is something like below, but it is not giving proper results during infer run and result in "No such file / directory" error

dir_a\dir_b\a.c
dir_a\b.c

Please help regarding this.

@ngorogiannis
Copy link
Member

It looks like the slashes are for a Windows system?

@VvinayakK
Copy link
Author

Even upon using backward slash like below in change_list.txt, the result is same.

/dir_a/dir_b/a.c
/dir_a/b.c

@ngorogiannis
Copy link
Member

ngorogiannis commented Jan 16, 2024

/dir_a/dir_b/a.c is an absolute path (root-relative). I would use paths relative to the directory your sources are rooted at, and run infer from that directory (or, provide --project-root dir to Infer).

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

No branches or pull requests

2 participants