Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Building go program stops with error on branch 2.6.x #1831

Open
2 tasks done
wigglethorpe opened this issue Dec 6, 2024 · 5 comments
Open
2 tasks done

[Bug]: Building go program stops with error on branch 2.6.x #1831

wigglethorpe opened this issue Dec 6, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@wigglethorpe
Copy link

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration issue.
  • This issue is not already reported on Github (I've searched it).

Bug description

Ends compile with sqlite3 error. The problem seems to be sqlite3.Error does not exist in the source package.

Steps to reproduce

  1. Clone sftpgo branch 2.6.x
  2. Go to command line and run "go build"

Expected behavior

Successful compile.

SFTPGo version

2.6.x

Data provider

mariadb (mysql)

Installation method

Other

Configuration

config does not apply to this error

Relevant log output

No response

What are you using SFTPGo for?

Small business (3-person firm with file exchange?)

Additional info

No response

@wigglethorpe wigglethorpe added the bug Something isn't working label Dec 6, 2024
@drakkan
Copy link
Owner

drakkan commented Dec 6, 2024

I can't replicate sorry

nicola@p16s /tmp $ git clone [email protected]:drakkan/sftpgo.git
Clone in 'sftpgo' in corso...
remote: Enumerating objects: 30370, done.
remote: Counting objects: 100% (1749/1749), done.
remote: Compressing objects: 100% (150/150), done.
remote: Total 30370 (delta 1634), reused 1684 (delta 1594), pack-reused 28621 (from 1)
Ricezione degli oggetti: 100% (30370/30370), 34.65 MiB | 10.82 MiB/s, fatto.
Risoluzione dei delta: 100% (23383/23383), fatto.
nicola@p16s /tmp $ cd sftpgo/
nicola@p16s /tmp/sftpgo $ git checkout 2.6.x
branch '2.6.x' set up to track 'origin/2.6.x'.
Si è passati a un nuovo branch '2.6.x'
nicola@p16s /tmp/sftpgo $ go build
nicola@p16s /tmp/sftpgo $ ls  sftpgo
sftpgo

The 2.6.x branch corresponds to v2.6.4 which you can download already compiled. If you are modifying SFTPGo you are creating a derivative work.

@wigglethorpe
Copy link
Author

I found out, you have to compile it for Windows to get the error. It compiles successfully on Linux.

@drakkan
Copy link
Owner

drakkan commented Dec 23, 2024

Are you building on Windows or cross compiling from Linux?

@wigglethorpe
Copy link
Author

It doesn't matter, if I build it on Linux for windows or windows directly, it errors out the same.

@drakkan
Copy link
Owner

drakkan commented Dec 23, 2024

are you sure you have a proper compiler on Windows, for example MinGW-w64? or a proper cross compiler on Linux? SQLite is a CGO dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants