Comments (5)
Does it duplicate with #26 ?
from gaia.
@yangyanqing another C fella here ;-)
The Go compiler works in a different way than C compilers - build artifacts are cached and reused by default in future builds, unless cache is turned off explicitly by setting GOCACHE=off
in the environment. You may find out where the compiler caches objects by typing go env GOCACHE
.
Since the adoption of go modules, turning the cache off causes the build to fail:
$ GOCACHE=off make install
go install -mod=readonly -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=gaia -X github.com/cosmos/cosmos-sdk/version.ServerName=gaiad -X github.com/cosmos/cosmos-sdk/version.ClientName=gaiacli -X github.com/cosmos/cosmos-sdk/version.Version=0.0.0-15-g787bd94 -X github.com/cosmos/cosmos-sdk/version.Commit=787bd94b3134ba334e1162afcf77bbe8dcf66644 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger"' ./cmd/gaiad
build cache is disabled by GOCACHE=off, but required as of Go 1.12
Makefile:84: recipe for target 'install' failed
make: *** [install] Error 1
If you want to make sure to recompile all build artifacts, you first need to call go clean -cache
.
from gaia.
I know how to do this - it's more a question of how needed this is cause a mitigation is in place:
make clean build
This way you can make sure you recompile everything
from gaia.
I was a C engineer for more than 8 years. C project will compile each .c
to .obj
, and link them to executable file
. There are tens of millions of lines of code in my project. When I modify a single file, make
can find it accurately. Compiling can finish in one minute. But if I clean all target, I have to wait for more than 40 minutes.
I cannot find some intermediate file like obj
in go build system. So maybe make clean build
and make build
will spend the same time. If the project grow grow to a larger scale, compile time will be longer and longer.
from gaia.
Thank you for taking the time to file this report and helping to make gaia better. I'm closing it as it does not seem to be causing significant problems for now.
from gaia.
Related Issues (20)
- [investigate]: Prevoting nil err, wrong Block.Header.AppHash. HOT 9
- I need to do a hot change of feemarket... HOT 3
- [question]: Unable to get the latest list of proposals through the restful interface HOT 2
- [Docs]: update build and run docs for CosmWasm HOT 1
- upgrade PSS to SDK v0.50.0 (ICS v5.1.0) HOT 1
- Jailed validator HOT 4
- [feature request]: gaia container image is outdated since 2 years HOT 6
- [Docs]: Security Audit HOT 1
- [Bug]: Node binary should quit with status code 1 when a fatal error occurs. It currently does not. HOT 7
- [Question]: Atom Node Not Syncing with Gaia 17.1.0 HOT 3
- [Docs]: update repo readme file
- [Bug]: "grpc: received message larger than max" when get specified tx info HOT 3
- cosmos-sdk v50.x with LSM HOT 1
- [Epic]: Gaia v19.0.0
- [Epic]: Gaia v20.0.0
- docs: governance/parameters docs do not reflect actual on chain parameters HOT 1
- Error when testing sending transactions on v18.1.0 HOT 4
- UX: IBC forwarding for transactions HOT 5
- Testing: add interchaintest powered e2e tests and reproducible docker builds
- ATOM Node not working after upgrade to 18.1.0 HOT 8
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 gaia.