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

loader: add support for fs.FS #5069

Merged
merged 1 commit into from
Sep 6, 2022
Merged

Commits on Sep 6, 2022

  1. loader: add support for fs.FS

    There's no correct way to provide the behavior of native `os` functions
    with an `fs.FS` since `fs.FS`s should reject rooted paths and only use
    unix path separators ("/"). Initially I created a `rawFS` that directly
    forwarded calls to the `os` package but it felt more wrong the more I
    looked at it.
    
    Relevant issues:
    * golang/go#47803
    * golang/go#44279
    
    closes open-policy-agent#5066
    
    Signed-off-by: julio <julio.grillo98@gmail.com>
    ear7h authored and anderseknert committed Sep 6, 2022
    Configuration menu
    Copy the full SHA
    16037e9 View commit details
    Browse the repository at this point in the history