Code Monkey home page Code Monkey logo

Comments (10)

moizjv avatar moizjv commented on July 16, 2024 2

Still not importing drivers subfolder.
Following dep config works with a workaround

[[constraint]]
  name = "github.com/ulule/limiter"
  branch = "v3-dep"

[prune]
  go-tests = true
  unused-packages = true
  [[prune.project]]
    name = "github.com/ulule/limiter"
    unused-packages = false

from limiter.

novln avatar novln commented on July 16, 2024

Hello,

I'm not familiar with the cohabitation of dep and go modules...
Could you try to import github.com/ulule/limiter/v3 with dep?

If that doesn't solve the problems, can you tell me?
I'll have to create another branch to remove the versioning in the import path.

Thank you.

from limiter.

montanaflynn avatar montanaflynn commented on July 16, 2024

I could not use v3 with dep:

dep ensure -add github.com/ulule/limiter/v3
Fetching sources...

Solving failure: No versions of github.com/ulule/limiter met constraints:
	v3.1.0: Could not introduce github.com/ulule/[email protected], as its subpackage github.com/ulule/limiter/v3 is missing. (Package is required by (root).)
	v3.0.0: Could not introduce github.com/ulule/[email protected], as its subpackage github.com/ulule/limiter/v3 is missing. (Package is required by (root).)
	v2.2.2: Could not introduce github.com/ulule/[email protected], as its subpackage github.com/ulule/limiter/v3 is missing. (Package is required by (root).)
	v2.2.1: Could not introduce github.com/ulule/[email protected], as its subpackage github.com/ulule/limiter/v3 is missing. (Package is required by (root).)
	v2.2.0: Could not introduce github.com/ulule/[email protected], as its subpackage github.com/ulule/limiter/v3 is missing. (Package is required by (root).)
	v2.1.0: Could not introduce github.com/ulule/[email protected], as its subpackage github.com/ulule/limiter/v3 is missing. (Package is required by (root).)
	v2.0.0: Could not introduce github.com/ulule/[email protected], as its subpackage github.com/ulule/limiter/v3 is missing. (Package is required by (root).)
	v1.0.0: Could not introduce github.com/ulule/[email protected], as its subpackage github.com/ulule/limiter/v3 is missing. (Package is required by (root).)
	master: Could not introduce github.com/ulule/limiter@master, as its subpackage github.com/ulule/limiter/v3 is missing. (Package is required by (root).)
	dev: Could not introduce github.com/ulule/limiter@dev, as its subpackage github.com/ulule/limiter/v3 is missing. (Package is required by (root).)
	v1: Could not introduce github.com/ulule/limiter@v1, as its subpackage github.com/ulule/limiter/v3 is missing. (Package is required by (root).)
	v2: Could not introduce github.com/ulule/limiter@v2, as its subpackage github.com/ulule/limiter/v3 is missing. (Package is required by (root).)

from limiter.

novln avatar novln commented on July 16, 2024

Creating a new branch it is...
Thanks for the report.

from limiter.

novln avatar novln commented on July 16, 2024

@montanaflynn Could you try the v3-dep branch?

from limiter.

novln avatar novln commented on July 16, 2024

@montanaflynn If it fixes this issue, could you close it?
Thank you.

from limiter.

domgolonka avatar domgolonka commented on July 16, 2024

Im still getting the same error even after trying the v3-dep branch.

from limiter.

novln avatar novln commented on July 16, 2024

@domgolonka Have you tried moizjv workaround?

If it doesn't work, I'll gladly review any pull request that tries to fix this incompatibility between dep and go modules. Unfortunately, I don't have much time to take a deeper look at this issue.

from limiter.

novln avatar novln commented on July 16, 2024

Sorry I'm unable to reproduce this error using an up-to-date version of dep

➤ dep version
dep:
 version     : v0.5.4
 build date  : 2019-06-14

Please make sure that you are using the branch v3-dep

This is the project I used as reference: https://github.com/novln/limiter-dep-demo

from limiter.

thoas avatar thoas commented on July 16, 2024

closing the issue, it's time to migrate to go mod

from limiter.

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.