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

Include: preliminary FilesystemIncludeProvider #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zachjs
Copy link
Contributor

@zachjs zachjs commented Sep 18, 2021

No description provided.

let filename = Path::new(name);
if filename.is_absolute() {
if mode == IncludeSearchMode::System {
todo!("forbid use of absulute paths in system include directives, per Section 22.4 of IEEE 1800-2017");
Copy link
Owner

Choose a reason for hiding this comment

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

typo


#[test]
fn test_filesystem_include_provider() {
// TODO: this is testing using some existing workspace files rather than designated
Copy link
Owner

Choose a reason for hiding this comment

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

yes, don't do this — instead, add the tempfile crate to dev-dependencies, use it to create and fill out a temp dir (or several)

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.

2 participants