How to Resolve Dependency Conflicts When Using `GO111MODULE=on` and `github.com/junegunn/fzf`?

Barbara Streisand
Release: 2024-10-28 12:46:30
Original
131 people have browsed it

 How to Resolve Dependency Conflicts When Using `GO111MODULE=on` and `github.com/junegunn/fzf`?

Trouble Loading Module Requirements with GO111MODULE=on

The issue encountered while trying to get the development branch of github.com/junegunn/fzf with GO111MODULE=on is related to a dependency conflict.

The dependency graph looks as follows:

github.com/junegunn/fzf -> github.com/gdamore/tcell -> gopkg.in/DATA-DOG/go-sqlmock.v1
Copy after login

GOPKG.IN/DATA-DOG/go-sqlmock version 1.3.3 introduced go modules without version suffixes, causing issues with explicit version number specification.

When attempting to get fzf@devel explicitly using -u, the dependencies get updated to their latest versions. However, go-sqlmock v1.3.3 is incompatible with this setup due to its lack of a version suffix.

The solution is to use go get github.com/junegunn/fzf without the -u flag if the intention is to work with the development branch without updating dependencies. Alternatively, use an older version of go-sqlmock with a version suffix.

The issue involving go-sqlmock 1.3.3 has been reported and a pull request exists to address it: https://github.com/gdamore/tcell/pull/267.

The above is the detailed content of How to Resolve Dependency Conflicts When Using `GO111MODULE=on` and `github.com/junegunn/fzf`?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!