github / github/codeql-cli-binaries

codeql run test doesn't match absolute fs paths in graph queries

Đang mở
#36 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
CLI
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
1k
Fork
184
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Per @max-schaefer `codeql run test` should adapt queries that emit absolute FS paths such that they pass when run in a different environment. For example my test emits `# 0| [File] /home/chris/codeql-home/codeql-go/ql/test/library-tests/semmle/go/PrintAst/input.go` but the test doesn't work when the `.expected` file uses a truncated relative version of that path, or when it uses a different absolute path and the .actual uses the absolute path appropriate to a different environment.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.