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

kraken-build/: feature: Add kraken.build module which allows importing the current context and project from a build script as if calling Context.current() or Project.current() #158

Merged
merged 1 commit into from
Jan 7, 2024

Conversation

NiklasRosenstein
Copy link
Contributor

@NiklasRosenstein NiklasRosenstein commented Jan 7, 2024

We already have this functionality in kraken-hs but it has two drawbacks:

  • It's only in kraken-hs, so no use for OSS projects!
  • That implementation uses a lazy object proxy, which can cause issues down the line when passing the object to other functions (the proxy will always defer to the current project, not the project that the object was used in and passed somewhere else)

…ing the current `context` and `project` from a build script as if calling `Context.current()` or `Project.current()`
@NiklasRosenstein NiklasRosenstein merged commit ddda83f into develop Jan 7, 2024
6 checks passed
@NiklasRosenstein NiklasRosenstein deleted the nr/kraken-build-module branch January 7, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant