8000 ini-file and toml-file stores seems to be missing · Issue #689 · configu/configu · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ini-file and toml-file stores seems to be missing #689

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

Open
LongBeachHXC opened this issue Dec 30, 2024 · 2 comments
Open

ini-file and toml-file stores seems to be missing #689

LongBeachHXC opened this issue Dec 30, 2024 · 2 comments
Labels
8000 bug Something isn't working community triage The issue is new and needs to be triaged by a maintainer

Comments

@LongBeachHXC
Copy link

Current Behavior

I just upgraded my Configu CLI to the 1.0 release. I'm having issues using the ini-file and toml-file stores. I also tested the json-file store and did NOT receive any errors.

configu upsert --verbose --store localToml --set test --schema test.cfgu.yaml --assign "TEST_KEY=false"

 ERROR  store toml-file not found                                                                                                                                                                                                                                                                      5:31:45 AM

    at ConfiguFile.registerStore (dist/configu.cjs:1571:2369)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async ConfiguFile.constructStore (dist/configu.cjs:1571:2647)
    at async ConfiguInterface.getStoreInstance (dist/configu.cjs:1575:609)
    at async a2.execute (dist/configu.cjs:1575:4630)
    at async a2.validateAndExecute (dist/configu.cjs:1374:748)
    at async e.run (dist/configu.cjs:1388:2434)
    at async run (dist/configu.cjs:1588:319)
configu upsert --store localIni --set test --schema test.cfgu.yaml --assign "TEST_KEY=false"

 ERROR  store ini-file not found                                                                                                                                                                                                                                                                       5:26:58 AM

    at ConfiguFile.registerStore (dist/configu.cjs:1571:2369)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async ConfiguFile.constructStore (dist/configu.cjs:1571:2647)
    at async ConfiguInterface.getStoreInstance (dist/configu.cjs:1575:609)
    at async a2.execute (dist/configu.cjs:1575:4630)
    at async a2.validateAndExecute (dist/configu.cjs:1374:748)
    at async e.run (dist/configu.cjs:1388:2434)
    at async run (dist/configu.cjs:1588:319)


configu upsert --verbose --store localJson --set test --schema test.cfgu.yaml --assign "TEST_KEY=false"
✔ Configs upserted successfully  
configu --version
1.0.0

# .configu
stores:
  localJson:
    type: json-file
    configuration:
      path: config-store.json
  localIni:
    type: ini-file
    configuration:
      path: config-store.ini
  localToml:
    type: toml-file
    configuration:
      path: config-store.toml
# config.cfgu.yaml
---
TEST_KEY:
  description: This is just an example
  type: String
...

Expected Behavior

I would expect the ini and toml file stores to operate like the json-file store.

To Reproduce

No response

Context

No response

@LongBeachHXC LongBeachHXC added the bug Something isn't working label Dec 30, 2024
@github-actions github-actions bot added triage The issue is new and needs to be triaged by a maintainer community labels Dec 30, 2024
@LongBeachHXC LongBeachHXC changed the title ini-file store seems to be missing ini-file and toml-file stores seems to be missing Dec 30, 2024
@rannn505
Copy link
Contributor

From Discord:
image

@rannn505
Copy link
Contributor
rannn505 commented Dec 31, 2024

@LongBeachHXC, As a temporary workaround you can change your .configu to this:

YAML:

$schema: https://files.configu.com/schema/.configu.json
stores:
  localJson:
    type: json-file
    configuration:
      path: config-store.json
  localIni:
    type: ini-file@next
    configuration:
      path: config-store.ini
  localToml:
    type: toml-file@next
    configuration:
      path: config-store.toml

LMK if you have any further issues setting up the stores, thanks 🙏🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community triage The issue is new and needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants
0