Skip to content

Multiple generations for same class #122

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

Closed
Rodsevich opened this issue Dec 5, 2024 · 0 comments · Fixed by #124
Closed

Multiple generations for same class #122

Rodsevich opened this issue Dec 5, 2024 · 0 comments · Fixed by #124
Labels
enhancement New feature or request

Comments

@Rodsevich
Copy link
Contributor

Suppose this example file

@Envied(path: '.env_debug', name: 'Dev')
@Envied(path: '.env', name: 'Prod')
class Env {
  @EnviedField(varName: 'KEY1')
  final String key1 = _Env.key1;
}

The generation is just for the first annotation.

final class _Dev {
  static const String key1 = 'debug_foo';
}

// no _Prod class generated
Rodsevich added a commit to Rodsevich/envied that referenced this issue Dec 6, 2024
@techouse techouse added the enhancement New feature or request label Dec 10, 2024
petercinibulk pushed a commit that referenced this issue Jan 14, 2025
* removed erroneous entry from melos.yaml

* work with pubspec overrides for facilitating example package deps

* order pubspec dependencies

* support multiple Envied annotations (Fix #122)

* bump version 1.0.1

* Revert "bump version 1.0.1"

This reverts commit 22a2820.

* revert to melos bs

* dev instructions

* Revert "removed erroneous entry from melos.yaml"

This reverts commit 2eba9e7.

* Revert "work with pubspec overrides for facilitating example package deps"

This reverts commit 1ec950d

* Revert "order pubspec dependencies"

This reverts commit b2312bc

* Revert "dev instructions"

This reverts commit bc0114e.

* 🙈 ignore example pubspec.lock

* 🎨 fix styling in example

* 🏷️ add explicit types

* 🔀 resolve merge conflicts

* 🎨 reformat code

---------

Co-authored-by: Nicolas Rodsevich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants