Repository navigation
fix: init in current directory instead of dagger - #7824
Conversation
716c2f8 to
58afffc
Compare
|
I identified few tests that fails become of this changes, I'm currently fixing each of them |
58afffc to
ab7c1ae
Compare
|
Still having issues fixing the tests, specially: https://github.com/dagger/dagger/blob/ab7c1ae9dbe35a7c78674e892e06faa564d5d69e/core/integration/module_config_test.go#L1144 I don't understand why it's not finding the EDIT: after multiple die and retry, I finally found a fix 🚀 |
26dcddd to
c1baff6
Compare
c1baff6 to
098e714
Compare
|
Update: got some tests to fix but not much and should be good, it's the first item on my list for tomorrow |
Fixes: dagger#6963 Signed-off-by: Tom Chauveau <[email protected]>
Signed-off-by: Tom Chauveau <[email protected]>
Signed-off-by: Tom Chauveau <[email protected]>
Signed-off-by: Tom Chauveau <[email protected]>
Signed-off-by: Tom Chauveau <[email protected]>
Signed-off-by: Tom Chauveau <[email protected]>
098e714 to
14228df
Compare
Signed-off-by: Tom Chauveau <[email protected]>
|
I fixed couple of Go tests, I'm waiting for the CI if there's more to do |
Signed-off-by: Tom Chauveau <[email protected]>
|
GoExtendCore failed on the CI but is good locally, it's a flack, all other tests have been fixed! This Pr is ready for a review @helderco |
helderco
left a comment
There was a problem hiding this comment.
lgtm, but not approving because we shouldn't merge this yet. There are some discussions that need to be resolved first, namely this "dev module" pattern thread in Discord.
It's ok not to keep the tests rebased and updated until we've decided to merge.
shykes
left a comment
There was a problem hiding this comment.
After discussing with @helderco and @jedevc today, I think we should go ahead and do this.
- It will immediately make life easier for module authors. When creating a standalone module,
.is clearly better thandaggeras a default source dir - On its own, this does not solve the problem of "how to embed a dagger module in an existing project". So we will need some follow-up design work. But the most promising design (sdk-specific native sub-packages) seems compatible with this change.
- Meanwhile, this does not make the experience significantly worse for embedded modules.
So it's a leap of faith, but one worth taking!
sipsma
left a comment
There was a problem hiding this comment.
LGTM, I added the needs-changelog label since we definitely want that before merging
Signed-off-by: Tom Chauveau <[email protected]>
| @@ -0,0 +1,7 @@ | |||
| kind: Changed | |||
| body: SDK now generate files in the current directory by default and no longer in | |||
| `./dagger` | |||
There was a problem hiding this comment.
Isn't this a syntax error?
[](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [dagger/dagger](https://togithub.com/dagger/dagger) | patch | `v0.12.1` -> `v0.12.3` | --- ### Release Notes <details> <summary>dagger/dagger (dagger/dagger)</summary> ### [`v0.12.3`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0123---2024-07-25) [Compare Source](https://togithub.com/dagger/dagger/compare/v0.12.2...v0.12.3) ##### Added - cli: propagate exit code from function by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/8019](https://togithub.com/dagger/dagger/pull/8019) ##### Fixed - Fix rare condition in which clients could use wrong files in filesync by [@​sipsma](https://togithub.com/sipsma) in [https://github.com/dagger/dagger/pull/7900](https://togithub.com/dagger/dagger/pull/7900) - Fix missing secret errors when secrets are set in objects fields during chained function calls by [@​sipsma](https://togithub.com/sipsma) in [https://github.com/dagger/dagger/pull/8011](https://togithub.com/dagger/dagger/pull/8011) ##### What to do next? - Read the [documentation](https://docs.dagger.io) - Join our [Discord server](https://discord.gg/dagger-io) - Follow us on [Twitter](https://twitter.com/dagger_io) ### [`v0.12.2`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0122---2024-07-22) [Compare Source](https://togithub.com/dagger/dagger/compare/v0.12.1...v0.12.2) ##### Changed - `dagger init` now generates files in the current directory by default and no longer in `./dagger` by [@​TomChv](https://togithub.com/TomChv) in [https://github.com/dagger/dagger/pull/7824](https://togithub.com/dagger/dagger/pull/7824) ##### Fixed - cli: fix handling of enum default values by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/8000](https://togithub.com/dagger/dagger/pull/8000) - cli: fix Cloud traces and GitHub checks always being succeeded by [@​vito](https://togithub.com/vito) in [https://github.com/dagger/dagger/pull/8001](https://togithub.com/dagger/dagger/pull/8001) - note: this only affects telemetry; the command itself still fails. ##### What to do next? - Read the [documentation](https://docs.dagger.io) - Join our [Discord server](https://discord.gg/dagger-io) - Follow us on [Twitter](https://twitter.com/dagger_io) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/scottames/dots). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
[](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [dagger/dagger](https://togithub.com/dagger/dagger) | patch | `v0.12.1` -> `v0.12.3` | --- ### Release Notes <details> <summary>dagger/dagger (dagger/dagger)</summary> ### [`v0.12.3`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0123---2024-07-25) [Compare Source](https://togithub.com/dagger/dagger/compare/v0.12.2...v0.12.3) ##### Added - cli: propagate exit code from function by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/8019](https://togithub.com/dagger/dagger/pull/8019) ##### Fixed - Fix rare condition in which clients could use wrong files in filesync by [@​sipsma](https://togithub.com/sipsma) in [https://github.com/dagger/dagger/pull/7900](https://togithub.com/dagger/dagger/pull/7900) - Fix missing secret errors when secrets are set in objects fields during chained function calls by [@​sipsma](https://togithub.com/sipsma) in [https://github.com/dagger/dagger/pull/8011](https://togithub.com/dagger/dagger/pull/8011) ##### What to do next? - Read the [documentation](https://docs.dagger.io) - Join our [Discord server](https://discord.gg/dagger-io) - Follow us on [Twitter](https://twitter.com/dagger_io) ### [`v0.12.2`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0122---2024-07-22) [Compare Source](https://togithub.com/dagger/dagger/compare/v0.12.1...v0.12.2) ##### Changed - `dagger init` now generates files in the current directory by default and no longer in `./dagger` by [@​TomChv](https://togithub.com/TomChv) in [https://github.com/dagger/dagger/pull/7824](https://togithub.com/dagger/dagger/pull/7824) ##### Fixed - cli: fix handling of enum default values by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/8000](https://togithub.com/dagger/dagger/pull/8000) - cli: fix Cloud traces and GitHub checks always being succeeded by [@​vito](https://togithub.com/vito) in [https://github.com/dagger/dagger/pull/8001](https://togithub.com/dagger/dagger/pull/8001) - note: this only affects telemetry; the command itself still fails. ##### What to do next? - Read the [documentation](https://docs.dagger.io) - Join our [Discord server](https://discord.gg/dagger-io) - Follow us on [Twitter](https://twitter.com/dagger_io) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/scottames/daggerverse). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
[](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [dagger/dagger](https://togithub.com/dagger/dagger) | patch | `v0.12.1` -> `v0.12.3` | --- ### Release Notes <details> <summary>dagger/dagger (dagger/dagger)</summary> ### [`v0.12.3`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0123---2024-07-25) [Compare Source](https://togithub.com/dagger/dagger/compare/v0.12.2...v0.12.3) ##### Added - cli: propagate exit code from function by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/8019](https://togithub.com/dagger/dagger/pull/8019) ##### Fixed - Fix rare condition in which clients could use wrong files in filesync by [@​sipsma](https://togithub.com/sipsma) in [https://github.com/dagger/dagger/pull/7900](https://togithub.com/dagger/dagger/pull/7900) - Fix missing secret errors when secrets are set in objects fields during chained function calls by [@​sipsma](https://togithub.com/sipsma) in [https://github.com/dagger/dagger/pull/8011](https://togithub.com/dagger/dagger/pull/8011) ##### What to do next? - Read the [documentation](https://docs.dagger.io) - Join our [Discord server](https://discord.gg/dagger-io) - Follow us on [Twitter](https://twitter.com/dagger_io) ### [`v0.12.2`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0122---2024-07-22) [Compare Source](https://togithub.com/dagger/dagger/compare/v0.12.1...v0.12.2) ##### Changed - `dagger init` now generates files in the current directory by default and no longer in `./dagger` by [@​TomChv](https://togithub.com/TomChv) in [https://github.com/dagger/dagger/pull/7824](https://togithub.com/dagger/dagger/pull/7824) ##### Fixed - cli: fix handling of enum default values by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/8000](https://togithub.com/dagger/dagger/pull/8000) - cli: fix Cloud traces and GitHub checks always being succeeded by [@​vito](https://togithub.com/vito) in [https://github.com/dagger/dagger/pull/8001](https://togithub.com/dagger/dagger/pull/8001) - note: this only affects telemetry; the command itself still fails. ##### What to do next? - Read the [documentation](https://docs.dagger.io) - Join our [Discord server](https://discord.gg/dagger-io) - Follow us on [Twitter](https://twitter.com/dagger_io) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/scottames/containers). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
Fixes #6963