Coder Social home page Coder Social logo

Comments (5)

domesticmouse avatar domesticmouse commented on May 13, 2024

I'm trying to replicate the issue:

brettmorgan@brettmorgan-macbookpro2 ~/g/s/g/d/foo> go version
go version go1.6 darwin/amd64
brettmorgan@brettmorgan-macbookpro2 ~/g/s/g/d/foo> glide -v
glide version 0.9.3
brettmorgan@brettmorgan-macbookpro2 ~/g/s/g/d/foo> glide get googlemaps.github.io/maps
[INFO] Preparing to install 1 package.
[INFO] Importing googlemaps.github.io/maps
[INFO] Downloading dependencies. Please wait...
[INFO] Fetching updates for googlemaps.github.io/maps.
[INFO] Resolving imports
[INFO] Downloading dependencies. Please wait...
brettmorgan@brettmorgan-macbookpro2 ~/g/s/g/d/foo> glide install
[INFO] Downloading dependencies. Please wait...
[INFO] Fetching updates for googlemaps.github.io/maps.
[INFO] Downloading dependencies. Please wait...
[INFO] Setting references.
[INFO] Setting version for googlemaps.github.io/maps to be062c0cd6e27871cdd8b56e8dc40f7e47746b58.
brettmorgan@brettmorgan-macbookpro2 ~/g/s/g/d/foo> cat glide.lock
hash: ac5677b32e573cb3b69e553e13c904258db457740a6a3747556529179bf63d22
updated: 2016-03-22T19:01:24.619172706+11:00
imports:
- name: googlemaps.github.io/maps
  version: be062c0cd6e27871cdd8b56e8dc40f7e47746b58
devImports: []
brettmorgan@brettmorgan-macbookpro2 ~/g/s/g/d/foo> glide update
[INFO] Downloading dependencies. Please wait...
[INFO] Fetching updates for googlemaps.github.io/maps.
[INFO] Resolving imports
[INFO] Downloading dependencies. Please wait...
[INFO] Setting references for remaining imports
[INFO] Project relies on 1 dependencies.

That all seems to work as intended. Can you re-try?

from google-maps-services-go.

skidder avatar skidder commented on May 13, 2024

Did you attempt to reproduce this issue using an empty package (i.e. no Go source files)? Glide examines import statements of the Go source files in the package, recursively pulling in dependencies.

I ran the commands you provided and indeed saw no problems. I then created a Go source file (main.go) that imports the googlemaps.github.io/maps package and got results similar to what I saw earlier:

skidder-air:googlemaps-glide-demo skidder$ ls -l
total 8
-rw-r--r--  1 skidder  staff  153 Mar 23 13:55 main.go
skidder-air:googlemaps-glide-demo skidder$ cat main.go
package main

import (
    "googlemaps.github.io/maps"
)

func main() {
    // Create a client to justify the import
    maps.NewClient(maps.WithAPIKey("foo"))
}
skidder-air:googlemaps-glide-demo skidder$ glide create
[INFO] Generating a YAML configuration file and guessing the dependencies
[INFO] Attempting to import from other package managers (use --skip-import to skip)
[INFO] Found reference to googlemaps.github.io/maps
skidder-air:googlemaps-glide-demo skidder$ cat glide.yaml
package: github.com/skidder/googlemaps-glide-demo
import:
- package: googlemaps.github.io/maps
skidder-air:googlemaps-glide-demo skidder$ glide update
[INFO] Downloading dependencies. Please wait...
[INFO] Fetching updates for googlemaps.github.io/maps.
[INFO] Resolving imports
[INFO] Fetching golang.org/x/net/context into /Users/skidder/Projects/gopath/src/github.com/skidder/googlemaps-glide-demo/vendor
[INFO] Fetching updates for googlemaps.github.io/maps/internal.
[WARN] googlemaps.github.io/maps/internal appears to be a vendored package. Unable to update. Consider the '--update-vendored' flag.
[WARN] Unable to set verion on googlemaps.github.io/maps/internal to . Err: Cannot detect VCS
[INFO] Downloading dependencies. Please wait...
[INFO] Setting references for remaining imports
[ERROR] Failed to set version on googlemaps.github.io/maps/internal to : Cannot detect VCS
[INFO] Project relies on 3 dependencies.
An Error has occurred

from google-maps-services-go.

domesticmouse avatar domesticmouse commented on May 13, 2024

Not the cleanest work around, but I believe this now works as intended:

$ glide update
[INFO] Downloading dependencies. Please wait...
[INFO] Fetching updates for googlemaps.github.io/maps.
[INFO] Resolving imports
[INFO] Fetching golang.org/x/net/context into /Users/brettmorgan/go-workspace/src/github.com/domesticmouse/foo/vendor
[INFO] Fetching updates for googlemaps.github.io/maps/internal.
[WARN] googlemaps.github.io/maps/internal appears to be a vendored package. Unable to update. Consider the '--update-vendored' flag.
[INFO] Downloading dependencies. Please wait...
[INFO] Setting references for remaining imports
[INFO] Project relies on 3 dependencies.

Above was with a project that had your main.go in it. Thanks for the report!

from google-maps-services-go.

skidder avatar skidder commented on May 13, 2024

I confirmed that the redirect is working, thank you!

from google-maps-services-go.

domesticmouse avatar domesticmouse commented on May 13, 2024

Thank you for the confirmation =)

from google-maps-services-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.