majewsky / gofu Goto Github PK
View Code? Open in Web Editor NEWMy personal busybox built in Go
License: GNU General Public License v3.0
My personal busybox built in Go
License: GNU General Public License v3.0
I was having some problems on the make install
part, the make
worked fine:
but the make install
gave the following error:
$ make install
GOPATH=/Users/talal/Go/src/github.com/majewsky/gofu/.gopath GOBIN=/Users/talal/Go/src/github.com/majewsky/gofu/build go install -ldflags '-s -w' 'github.com/majewsky/gofu'
install -D -m 0755 build/gofu "/usr/bin/gofu"
install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
I removed the -D
option from the Makefile.
then:
$ make install
GOPATH=/Users/talal/Go/src/github.com/majewsky/gofu/.gopath GOBIN=/Users/talal/Go/src/github.com/majewsky/gofu/build go install -ldflags '-s -w' 'github.com/majewsky/gofu'
install -m 0755 build/gofu "/usr/bin/gofu"
install: /usr/bin/gofu: Operation not permitted
make: *** [install] Error 71
Usually user stuff/binaries go in /usr/local/bin, that is where homebrew also symlinks its installed binaries. So I changed the line 17-19 in the Makefile to:
install: FORCE all
install -m 0755 build/gofu "/usr/local/bin/gofu"
for APPLET in $(APPLETS); do ln -s gofu "/usr/local/bin/$${APPLET}"; done
that worked and the correct symlinks were made.
Since I have zero clue about how Makefile(s) work, kindly advise on what would be a better approach to make this work on macOS.
When syncing the ~/.rtree/index-carbon.yaml
file there might be new remotes in the file than there are in the git repos. When running rtree index
the existing remotes from the git repos are written into the yaml file without any regards wether there where new ones in the yaml file which should have been synced to the git repo on disk before writing them back into the config.
Hey, I read your article about terminal latency, and was pretty interested in trying out gofu!
I'm running on macOS, go version go1.8.3 darwin/amd64
, and when I run make
, I get:
GOPATH=<path>/gofu/.gopath GOBIN=<path>/gofu/build go install -ldflags '-s -w' 'github.com/majewsky/gofu'
# github.com/majewsky/gofu/pkg/prompt
could not determine kind of name for C.__uid_t
make: *** [build/gofu] Error 2
I'm very new to golang, but some googling shows similar issues for the git2go project, so I built a new version of libgit2 with homebrew, but I'm still getting the issue.
Do you normally run on a mac, or is your daily OS linux?
$ cd /
$ cg gh:lib/pq
!! /x/src/github.com/lib/pq already exists (if there is a repo there, try `rtree index`)
$ pwd
/
$ cg https://github.com/lib/pq
$ pwd
/x/src/github.com/lib/pq
Plan:
To reproduce, run git gc
. Prompt then shows git:master/blank
because the ref exists only in .git/packed-refs
, not in .git/refs
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.