Skip to content

Change default module source directory from ./dagger to . - #7981

Closed
shykes wants to merge 2 commits into
dagger:mainfrom
shykes:init-default-source
Closed

shykes wants to merge 2 commits into
dagger:mainfrom
shykes:init-default-source

Conversation

@shykes

@shykes shykes commented Jul 18, 2024 •

Copy link
Copy Markdown
Contributor

Fixes #6963

When installing an SDK in a module, either with dagger init --sdk or first call to dagger develop --sdk, the default source directory will be . instead of dagger/.

Note that the source field in dagger.json is not created by default. If we want "source': "." to be explicitly added, I need help modifying this PR to achieve that behavior. cc @sipsma as you know that explicit behavior is usually your preference.

@shykes shykes changed the title Change default module source directory from ./dagger to . Change default module source directory from ./dagger to . Jul 18, 2024
@shykes
shykes requested review from TomChv and sipsma July 18, 2024 21:59
@helderco

Copy link
Copy Markdown
Contributor

@TomChv already worked on this in:

@TomChv

TomChv commented Jul 18, 2024

Copy link
Copy Markdown
Member

Yup, I already made a PR with the change, just took some time to fixe all the tests depending on the location of the generated file

@shykes

shykes commented Jul 18, 2024

Copy link
Copy Markdown
Contributor Author

Duplicate of #7824

@shykes shykes marked this as a duplicate of #7824 Jul 18, 2024
@shykes shykes closed this Jul 18, 2024
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.

SDKs should generate files in current working directory by default, not ./dagger

3 participants