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

automatic edge between http:file and file #734

Open
purpleidea opened this issue Jan 29, 2024 · 0 comments
Open

automatic edge between http:file and file #734

purpleidea opened this issue Jan 29, 2024 · 0 comments

Comments

@purpleidea
Copy link
Owner

Automatic edges add dependencies between different resources.

For example:

$f2 = "/tmp/some_file"
file $f2 {
        content => "i'm a cool file in /tmp\n",
        state => $const.res.file.state.exists,
}

http:server ":8080" {
}

http:file "/file2" {
        path => $f2,

        Depend => File[$f2],    # TODO: add autoedges
}

We have an API to add these automatically. Add this feature for these two resources! Keep in mind that path can be a dir as well.
The examples/lang/http*.mcl examples should make this all easier to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant