+ git clone https://github.com/octocat/hello-world.git .
Cloning into '.'... + go build can't
load package: package .: no Go files in /drone/src
hey there, based on the output you posted it would appear you copy / pasted the example from the documentation and you are using the configuration as-is.
Please note that this example in the documentation is more like pseudo code and is not meant to be a working example. You should replace the repository url and the build step with configuration parameters that are specific to your project.
the workspace directory (read more here), in which you are cloning your code, is a temporary docker volume that is destroyed when the pipeline is complete. Drone does not clone any code inside the agent or server container.
This was somewhat answered above, but for completeness, the /drone/src directory is the workspace directory. It is the temporary volume mounted inside your pipeline containers. It is the working directory of all pipeline steps.
Thank you for the detailed explanation. It makes a lot of sense now.
On the GitHub repo, apologies for that, for some reason I was expecting some golang files to be there (which weren’t present my mistake, and it’s obvious go build step will fail ).
I am testing pipelines now, will let you know how it goes (hopefully they will work, i know there is a potential problem for SSH github-clone that i have to solve). Thank you for taking the time to give detailed explanation.