Repository navigation
build and install dagger from source - #53
Conversation
47bff90 to
738e964
Compare
|
|
||
| let _tmpDir: string; | ||
|
|
||
| export function tmpDir(): string { |
There was a problem hiding this comment.
if tmpDir is used only once so far, what's the reason to make it stateful?
There was a problem hiding this comment.
my comment wasn't addressed. :sadmarcos: 😭
There was a problem hiding this comment.
LGTM, only left a nit comment.
I think we can merge after dagger/dagger#2288 is merged since it's almost there.
90caabb to
0841fc3
Compare
Signed-off-by: CrazyMax <[email protected]>
|
Could you explain what this does? Does it build dagger from source, or does it rely on a binary-as-a-service on the upstream dagger side? Thanks! |
|
It's building Dagger from the |
Yes like @marcosnils says it builds Dagger on-fly using a remote Git context through jobs:
deploy:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Dagger
uses: dagger/dagger-for-github@v2
with:
# build PR 2288
version: https://github.com/dagger/dagger.git#refs/pull/2288/head
cmds: do testjobs:
deploy:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Dagger
uses: dagger/dagger-for-github@v2
with:
# build main from shykes/dagger
version: https://github.com/shykes/dagger.git#main
cmds: do test |
|
I don’t want to hold up this feature, so consider this advisory feedback only. It’s not my preference to decentralize the build process, because it introduces fragmentation and is one step towards loss of control of the developer experience. For example, once we merge this, we have just agreed to am implicit API: we must always have a Dockerfile at the root of the dagger repo, and it must follow the following convention: (whatever this code expects). If we break this convention in the future, we break our user’s github actions. This is not great. One instance is not the end of the world (which is why this is advisory only, also because I don’t like to be the bad guy saying no all the time, I’ve done it for many years and it’s a thankless job). But if this sets an example and every downstream integration starts building their own version… The problem will get exponentially worse. So I’m more worried about the precedent. This is why I proposed a “binary on demand” service, it allows us to solve this problem once for all platforms, not just Github. In summary:
|
This is partially true, correct? Since it will only break for users that have specified My second thought here is that this specific use-case of the
It'd be great to have something like gobinaries.com (https://github.com/tj/gobinaries) that we can leverage only for Dagger binaries. I think that right now might not be the moment to allocate efforts into hosting and setting up such service. Moving forward I see three possible options: 1 - Merge this "as-is" and live with the possible fragmentation in the short term until we work on either 2 or 3 I'd go for 1 for the moment since I personally don't see the fragmentation problem a big issue given the case that it will mostly "potentially" affect a very small subset of advanced users. |
Correct it won’t break all our users all
Yes probably true.
Also probably true.
Yes option 1 is fine. Fragmentation issues always seem fine in the beginning, it’s a death by a thousand cuts. That’s why it almost always happens. The people warning against it can always be told “come on this instance is not that bad, aren’t you overreacting?”. It’s true this time, and will also be true the next 10,000 times. |
|
As a final reference I was checking how the |
|
@shykes @marcosnils Thanks for your feedback! I agree with you on the drifting part if changes occur upstream and break users workflow. Even if we take care of making it clear to be careful on changes in the upstream Dockerfile, user might still want to make some changes in it that would anyway break his workflow. So yeah chicken and egg situation there. 1 is still valid but 2 is more resilient I agree. We try that in the past in buildx repo by publishing the artifacts in the workflow space using https://github.com/actions/upload-artifact/#where-does-the-upload-go to share them and then use the GitHub API to retrieve the artifact in the action but artifacts were not available publicly 😞. This might have changed though 🤔 |
Signed-off-by: CrazyMax <[email protected]>
|
For me. Building from source is important. Not all PRs could be merge into main asap. Here are two important features for my usage:
So I have to create release branch with them, with this PR's help, I could start to migrate to dagger. |
fixes #35
Signed-off-by: CrazyMax [email protected]