Skip to content

Default loading path for data? #800

Open

Description

@blairdrummond

I saw one or two very old comments about having a default data path (like policy/data or just data), but it seems like there isn't one yet.

#215 (review)

#169 (comment)

For me, this makes bundles hard to use effectively, because the bundle isn't enough, you need to make sure that the consuming conftest call adds a -d flag. If there was a default policy/data folder, then I could publish bundles and consume them easily. (Note: the --combine flag is one obstacle, but can deal with that problem later)

Activity

  1. k11y commented on Jul 20, 2024

    @k11y

    Hey, I want to pick up this issue.
    Just a question on how the default value should be handled when loading data files if the default location doesn't exist? My current thought is to check when a folder not found error is thrown and then check if it is using the default path location and if so continue without throwing that error. Or would there be a better way?

  2. added a commit that references this issue on Jul 20, 2024
    9135c04
  3. added a commit that references this issue on Jan 1, 2026
    248c072
  4. added a commit that references this issue on Mar 29, 2026
    6905d42
  5. alliasgher commented on Apr 25, 2026

    @alliasgher

    Opened #1322 for this.

  6. added a commit that references this issue on Aug 10, 2026
    cd57876
  7. added a commit that references this issue on Aug 10, 2026
    c1f36f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions