Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Kevin Pierce
@kevpie
I used to be able to have a vendor dependency sit as a cloned git repo that I could develop against. Glide would complain if I had uncommitted changes. Now it blows away my cloned folder. Any advice on how to get the old behavior back? Should I go back to v0.11.1 or further? Hopefully I'm just missing a flag that clones repos into the vendor area. Currently without this feature my workflow and enjoyment are significantly impacted. Looking for advise. :smile:
Kevin Pierce
@kevpie
Deleting the vendor folder and using v0.11.1 to glide install and I'm able work on my vendor'd libraries! Simple work around for easy VCS dependency development.
Darko Draskovic
@darkodraskovic
hello, I've just done
glide up
and only glide.lock got update, but glide.yaml did not reflect the change. there is an opened issue here: Masterminds/glide#827
Maxim Radko
@tttmaximttt
Hi, glitter has a chat with golang developers, maybe someone knows?
Maxim Radko
@tttmaximttt
Or may be some one can help me with this
Screenshot_2017-05-30 14.36.53_W5GTj3.png
Yao Wei
@medicalwei
How can I get the dependency tree?
or, what package is a dependency raised from?
Ruben Laguna
@ecerulm
Hi, I just started with glide. I have a package with packages inside . and glide install complains that "Update failed for "myprivatedomain.com/myproject/subpackage1"
I don't understand why it tries to "vendor" that, it's not a dependency per se. Can I just remove those from the glide.yaml?
Ruben Laguna
@ecerulm
When I remove the package lines of the "subpackages" from my glide.yaml, it fetches more stuff. It still prints a lot of errors "Error looking for myprivatedomain.com/myproject/cmd " and at the end says "Failed to retrieve a list of dependencies: Error resolving imports" and nothing is written to vendor/ directory
Matt Farina
@mattfarina
For a glide package just have the package line be the top level repo
is that what you have?
Ruben Laguna
@ecerulm
Yes, but the repo is not a github repo so "myprivatedomain.com/myproject" is not a VCS itself. I was trying to do this locally
I mean I used "rubenlaguna.com/myproject" as import path and rubenlaguna.com is not a VCS
Matt Farina
@mattfarina
that project doesn't live in a VCS? even locally?
Ruben Laguna
@ecerulm
locally yes, locally is a subversion dir.
Matt Farina
@mattfarina
for the repo property have you tried setting it to the local location... file:///...?
An issue with local only dependencies is that others cannot fetch or update them. that includes CI systems, etc
Ruben Laguna
@ecerulm
no, I haven't tried that. is that a property of the package or the imports: package
Ruben Laguna
@ecerulm
I'm going to upload the vendor dir to subversion
Matt Farina
@mattfarina
how would someone else update the dependencies to the latest?
A glide up?
if they don't have access to the source
Ruben Laguna
@ecerulm
It's like a private internal product in the company i'm working with. So the only ones calling glide up will be other developers at this company that have access to this subversion
Matt Farina
@mattfarina
is this a large monorepo?
Ruben Laguna
@ecerulm
Yes, large monorepo is a perfect description of what they have done
Matt Farina
@mattfarina
You can use the repo property to tell glide where your svn repo is
Ruben Laguna
@ecerulm
I'll try now
Matt Farina
@mattfarina
note, svn is a little funny because a lot of svn things are conventions. so, you may have to tell it the internal path to trunk, a version, etc.
tags are funny in svn and are a convention rather than an implementation detail. not everyone follows them the same
Ruben Laguna
@ecerulm
Also this repo is svn+ssh://username only
Matt Farina
@mattfarina
if your local svn knows about it then it should be able to talk
Ruben Laguna
@ecerulm
Well I'm going to try, thx
Matt Farina
@mattfarina
You might want to try the glide mirror commands... glide help mirror for details
that's if different people have different usernames or soemthing
Ruben Laguna
@ecerulm
yes, they do
Matt Farina
@mattfarina
Your setup is a bit of an edge case... very very few devs do this kind of setup so I'm not as much help
Ruben Laguna
@ecerulm
I was already suspecting that this setup was going to give me a headache.
thx, anyway
fg
ls
Ruben Laguna
@ecerulm
Ok, by reading the glide.yaml documentation I've found that I can do ignore: -rubenlaguna.com/myproject/mysubpackage1, and that works,
glide install now downloads all the other packages into the vendor/ directory
Nate Finch
@natefinch
Can anyone explain the workflow for how you update a single import with glide? So, like, you have an existing project using glide. You update one of its dependencies.... how do you then update the project to get the updated dependency without updating EVERYTHING? I just want to update my one library.
I don't want to have to worry about the code changes in the 8 other projects that have also pushed new commits since the last time I ran glide update.
sorry.. update is an overloaded word. I push a commit to a dependency of this project. I want to make the glide.lock now point at that new commit (the dependency in the glide.yaml is just set to use latest).