Repository navigation
fixed the sample github action in the documentation - #1962
Conversation
|
Hello, thanks for your contribution 😇 Did you push to your repo the packages and the I don't have a strong opinion on the best practice. However, you're right: the way this action is built implies that the Could you also please update your DCO ? |
87e9932 to
c643876
Compare
|
Hi @ekinbarut ! many thanks for your contribution :). By the way, we have a contributing guide if you want to have a look 👀 . Usually when we create PR from our fork, we create branch first. Again thanks for your time. |
|
Thanks for your comments. My mistake in skipping the contributing guideline, should I close this and recreate another PR in accordance with the guideline? |
|
@grouville I don't have a strong opinion on where to handle that either, first thing that came to my mind was to solve it using CI. General feedback as a user would be that it'd be great if |
No it's ok, you have signed off your commit, it's enough :P |
In my opinion, you should push the But I agree that we should insist on |
hey @ekinbarut, not a problem :). I was saying that for next time. Thanks |
|
Hi @ekinbarut, thank you for mentioning this! In the original context - Double-checking this now in a fresh Linux container with docker run -it -v /var/run/docker.sock:/var/run/docker.sock --rm \
nixery.dev/shell/coreutils/curl/docker/git/gnugrep/gnutar/gzip
# all following commands are running inside this container 👇🏻
curl -L https://dl.dagger.io/dagger/install.sh | sh
# ...
type dagger
# dagger is /bin/dagger
dagger version
# dagger 0.2.4 (b32c8732) linux/amd64
mkdir -p github.com/dagger
cd github.com/dagger
git clone https://github.com/dagger/dagger
cd dagger/pkg/universe.dagger.io/examples/todoapp
pwd
# /github.com/dagger/dagger/pkg/universe.dagger.io/examples/todoapp
dagger do build
# [✔] actions.build.run.script 0.2s
# [✔] actions.deps 23.0s
# [✔] actions.test.script 0.2s
# [✔] client.filesystem."./".read 0.3s
# [✔] actions.test 0.8s
# [✔] actions.build.run 4.8s
# [✔] actions.build.contents 0.1s
# [✔] client.filesystem."./_build".write 0.0s
# ☝🏻 Everything works OK, no dagger project init or update requiredOK, so once the While these changes are a step in the right direction, they do require a few changes. Let me add those as inline comments on |
There was a problem hiding this comment.
We should not do this in the context of CI, otherwise we are implying that this Dagger project does not run outside of CI, which raises package versioning issues.
You should have initialised this project locally via this command, and committed all files that this generates. There is a single one right now:
❯ pwd
/home/gerhard/github.com/ekinbarut/dagger_test
❯ git status
On branch main
Your branch is up to date with 'origin/main'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
cue.mod/
❯ git add .
❯ git diff --cached
diff --git a/cue.mod/module.cue b/cue.mod/module.cue
new file mode 100644
index 0000000..b57d010
--- /dev/null
+++ b/cue.mod/module.cue
@@ -0,0 +1 @@
+module: ""
\ No newline at end of file
After working in web development for a number of years, and using several different package managers, I usually frown upon committing dependencies to git, assuming there's a lock file. So |
|
@helderco my understanding is: ✅ That means that this requires the following changes @ekinbarut before we can merge:
Is there anything else that I have missed @helderco @TomChv? |
To pin external dependencies, you add them with a git tag:
No, packages are installed in |
Signed-off-by: ekinbarut <[email protected]> Signed-off-by: ekinbarut <[email protected]>
Signed-off-by: ekinbarut <[email protected]>
and
Those were the required updates as far as I've understood. Did I miss any? |
Is it explained somewhere? It's really important to know that |
There was a problem hiding this comment.
Thank you for sticking with me on this one @ekinbarut. I just got back and wanted to first get #2172 on the launchpad before getting yours merged. That new PR ensures a nice continuity to your contribution, which I am grateful for. Thank you! 🙌🏻 🚀
Would you like to review those changes for me @ekinbarut? 🙂
Thanks to a great community contribution, we are improving the GitHub Actions integration further. We should probably do the same for the GitLab integration doc as a follow-up to this. Follow-up to dagger#1962 Uses improvements from dagger#2195 Signed-off-by: Gerhard Lazu <[email protected]>
The sample GitHub action in the documentation did not work due to go packages not being installed before the deploy script.
This is a working sample and suits the documentation better, imo.
You can see the trial and errors here: https://github.com/ekinbarut/dagger_test/actions