Giter Site home page Giter Site logo

unable to build about pam-exec-oauth2 HOT 2 CLOSED

shimt avatar shimt commented on May 25, 2024
unable to build

from pam-exec-oauth2.

Comments (2)

shimt avatar shimt commented on May 25, 2024

Are you compiling under $GOPATH?

ex1 (OK)

% echo $GOPATH
~/go
% pwd
~/go/src/github.com/shimt/pam-exec-oauth2
% go build

ex2 (NG)

% echo $GOPATH
~/go
% pwd
~/tmp/pam-exec-oauth2
% go build
# ~/tmp/pam-exec-oauth2
./main.go:110:34: oauth2Config.PasswordCredentialsTokenEx undefined (type oauth2.Config has no field or method PasswordCredentialsTokenEx)

from pam-exec-oauth2.

chdorb avatar chdorb commented on May 25, 2024

It's OK. Thank you ! and sorry…

[~]$ mkdir go
[~]$ export GOPATH=~/go                                                                                
[~]$ cd $GOPATH                                                                                        
[~/go]$ pwd                                                                                            
/home/chdorb/go
[~/go]$ go get github.com/shimt/pam-exec-oauth2
[~/go]$ cd src/github.com/shimt/pam-exec-oauth2                                                        
[~/go/src/github.com/shimt/pam-exec-oauth2]$ go build
[~/go/src/github.com/shimt/pam-exec-oauth2]$ ls -l
total 9240
-rw-r--r-- 1 chdorb chdorb      78 15 oct.  10:45 build-linux-amd64.bat
-rw-r--r-- 1 chdorb chdorb      78 15 oct.  10:45 build-linux-arm64.bat
-rw-r--r-- 1 chdorb chdorb      76 15 oct.  10:45 build-linux-arm.bat
-rw-r--r-- 1 chdorb chdorb    1072 15 oct.  10:45 LICENSE
-rw-r--r-- 1 chdorb chdorb    3830 15 oct.  10:45 main.go
-rwxr-xr-x 1 chdorb chdorb 9431240 15 oct.  10:46 pam-exec-oauth2
-rw-r--r-- 1 chdorb chdorb    1080 15 oct.  10:45 README.md
drwxr-xr-x 3 chdorb chdorb    4096 15 oct.  10:45 vendor

from pam-exec-oauth2.

Related Issues (9)

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.