-
Notifications
You must be signed in to change notification settings - Fork 1k
Cannot ignore local packages to be downloaded into /vendor folder and Gopkg.lock #1775
Comments
Looks like using a wildcard at the end solved it: |
i'm glad you found the solution here, but please note that what you're trying to accomplish is the multi-project workflow, and it's likely going to give you some headaches. See, most recently, #1768. |
I re-inited my dep project from start, because I have some problem with the Maybe the issue was there on the first place, because I used all lowercase letters in my local paths, but sometimes I referenced my name as My Github username have uppercase letters, but I guess the local environment uneffected by this. I building the binaries with these commands in a Makefile: CURRENT_DIR ::= $(shell pwd)
BUILD_DIR ::= $(CURRENT_DIR)/build
build_static:
cd $(CURRENT_DIR); \
$(BUILD) -o $(BUILD_DIR)/static $(LDFLAGS) $(CURRENT_DIR)/src/static/main.go
...
run_static:
cd $(BUILD_DIR); \
GOMAXPROCS=1 ./static -logging=true -compress=false
I define |
I have the following
Gopkg.toml
file:The project structure: every source code is presented under
%GOPATH%/src/github.com/DJviolin/my-repository
in a folder namedsrc
. The microservices are organized into subfolders likestatic/main.go
and it's local packages in subfolders. These local packages re-downloaded into/vendor
, despite I don't want that and I used theignored
deritative inGopkg.toml
.What version of
dep
are you using (dep version
)?What
dep
command did you run?What did you expect to see?
I want to completely ignore the
github.com/DJviolin/my-repository
fromGopkg.lock
and/vendor
folder, because this is the repository where I developing it, simply put, I don't want to download few files from Github, instead use the local ones.What did you see instead?
Some folders still presented in
/vendor
folder.The text was updated successfully, but these errors were encountered: