Comments (2)
Hi @stmcallister , apologies for the confusion you had encountered. This project has been updated but the Language Guide: Go had not yet been updated to be in sync with the changes to the project. We'll be looking into improving this.
Unlike the previous version of this demo project (which the language guide was based on), the current version implicitly utilises Go module support (see: https://circleci.com/blog/go-v1.11-modules-and-circleci/) by invoking the Go command outside of $GOPATH. If you set the working_directory
to a path that is inside $GOPATH, that would disable Go module support, and hence the dependency information that was put in https://github.com/CircleCI-Public/circleci-demo-go/blob/master/go.mod would not be used to fetch dependencies. I believe that's why you encountered the need to fetch the dependencies in a separate step with go get
.
from circleci-demo-go.
Turns out these errors occured because I was setting the working_directory
as mentioned in the Language Guide: Go. I thought that the Language Guide Sample Configuration was supposed to match the configuration settings in this project. But, that is not true.
Someone can correct me, if I'm wrong, but this is what I believe happens. If you set the working_directory
in the config.yml
then that config is going to be looking for dependencies locally on your machine. If that's the case, then you need to go get
three dependencies: github.com/julienschmidt/httprouter
, github.com/mattes/migrate
, and github.com/stretchr/testify/require
. Or, just leave config.yml
as is and don't set working_directory
and run the project. Either way worked for me.
from circleci-demo-go.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circleci-demo-go.