Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lotus-provider to build to match install #11616

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Feb 12, 2024

There's currently a mismatch between build and install in that install always tries to install lotus-provider and will error if it's not built, but build doesn't build it for you; so a make clean && make build && sudo make install will always fail.

This adds lotus-provider to build, but the alternative is to remove lotus-provider from install. That option may be more appropriate since it's still under development?

@rvagg rvagg requested a review from magik6k February 12, 2024 11:46
@rvagg rvagg requested a review from a team as a code owner February 12, 2024 11:46
@rvagg rvagg requested a review from snadrus February 12, 2024 11:46
Copy link
Contributor

@rjan90 rjan90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed to fix the error:

go build  -ldflags="-X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.16b3f12c8.dirty" -o lotus ./cmd/lotus
rm -f lotus-miner
go build  -ldflags="-X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.16b3f12c8.dirty" -o lotus-miner ./cmd/lotus-miner
rm -f lotus-worker
go build  -ldflags="-X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.16b3f12c8.dirty" -o lotus-worker ./cmd/lotus-worker
rm -f lotus-provider
go build  -ldflags="-X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.16b3f12c8.dirty" -o lotus-provider ./cmd/lotus-provider
Caution: you have an existing lotus binary in your PATH. This may cause problems if you don't run 'sudo make install'

@snadrus snadrus merged commit 51b19a6 into master Feb 28, 2024
88 checks passed
@snadrus snadrus deleted the rvagg/build-provider branch February 28, 2024 17:58
rjan90 pushed a commit that referenced this pull request Mar 20, 2024
Add lotus-provider to build to match install
@rjan90 rjan90 mentioned this pull request Mar 20, 2024
8 tasks
rjan90 pushed a commit that referenced this pull request Mar 21, 2024
Add lotus-provider to build to match install
rjan90 pushed a commit that referenced this pull request Mar 21, 2024
Add lotus-provider to build to match install
rjan90 pushed a commit that referenced this pull request Mar 22, 2024
Add lotus-provider to build to match install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ☑️ Done (Archive)
Development

Successfully merging this pull request may close these issues.

3 participants