Thanks for the suggestion.
I think the replace method works, but it is some tedious.
I need to add a "go.mod" file for each of the subfolders under "oldvendor",
and add a line in the "go.mod" of the main module.
But it looks this is the only way which works currently.
It would be great if there i
Yes!! RUN apt-get update && apt-get install ca-certificates -y
for amd64/ubuntu:18.04
On Tuesday, September 10, 2019 at 12:28:56 PM UTC-7, Marcin Romaszewicz
wrote:
>
> You're missing the CA Root certificates for whatever linux distribution is
> running your application. For example, I use Alpi
Then turn vo into a Vertex variable, not a pointer
var vp Vertex = Vertex{}
...
if v.X == 3 {
vp = v
}
….
This time vp will be a copy of v,
Maybe you have to give some known values and exceptional case for your
domain, I mean, vp Vertex = { -1, -1} or any values your are
positive does n
On Tuesday, September 10, 2019 at 3:18:47 PM UTC-4, burak serdar wrote:
>
> On Tue, Sep 10, 2019 at 1:13 PM Tong Sun >
> wrote:
> >
> > I'm experiencing a weird problem with my program and finally nail it
> down to what exactly went wrong, so that I can write a minimum program to
> duplicate
You're missing the CA Root certificates for whatever linux distribution is
running your application. For example, I use Alpine linux as my Docker base
image for my Go services, and I must install the certificates like this via
the Dockerfile:
RUN apk update && apk add ca-certificates
Find the cor
I am using a dockerized Golang image to connect to my Azure SQL server
database. When I try to ping it, I am running into "TLS Handshake failed:
x509: certificate signed by unknown authority". I am able to run my app
from my box without dockerization without any issues. I am also able to
able t
vp is taking the address of v, so when the loop ends, v is the last element
in the slide and therefore *vp is {0,0}
Add a break to the condition when you assign vp, say
if v.X == 3 {
vp = &v
break
}
HTH,
Yamil
El martes, 10 de septiembre de 2019, 14:13:40 (UTC-5), Tong Sun escribió:
>
> I'm e
On Tue, Sep 10, 2019 at 1:13 PM Tong Sun wrote:
>
> I'm experiencing a weird problem with my program and finally nail it down to
> what exactly went wrong, so that I can write a minimum program to duplicate
> it. See the following program:
>
> package main
>
>
> import (
> "fmt"
> )
>
>
> type
I'm experiencing a weird problem with my program and finally nail it down
to what exactly went wrong, so that I can write a minimum program to
duplicate it. See the following program:
package main
import (
"fmt"
)
type Vertex struct {
X int
Y int
}
func main() {
vs := []Vertex{
Vertex
Hello T L,
I think I might not fully understand the exact scenario, but one thing some
people have done when they have something in their vendor directory that
they can't otherwise find anywhere else (e.g., perhaps because it is
modified, or maybe the only copy of a now-missing dependency is in
Hello Darko,
Rather than that 'replace' you found, a better solution is probably adding
a 'require' for a more recent release of github.com/ugorji/go.
Adding this to my go.mod worked for me in a simple test just now to resolve
a similar error to what you reported:
require github.com/ugorji/g
On Tue Sep 10, 2019 at 4:26 AM Jay Sharma wrote:
> --=_Part_1258_983331168.1568114760099
> Content-Type: text/plain; charset="UTF-8"
>
> Hello @elias,
>
> I tried the following:
>
> 1. Created a java class :
>
> package reversebinding;
>
> public class RBinding {
> public static String g
Just one more information:
I am calling from my go code like this:
RBinding.GetStringFromJava()
On Tuesday, September 10, 2019 at 4:56:00 PM UTC+5:30, Jay Sharma wrote:
>
> Hello @elias,
>
> I tried the following:
>
> 1. Created a java class :
>
> package reversebinding;
>
> public class RBind
Note that replace directives are not transitive, so every single user of
your library will need to do this. You can put it into your go.mod file
to get your library building and get tests passing, but your users will
still have to do this work as well so you'll probably want to document
that they n
Or can go commands support a new special folder: dependencies.
Its functionality is like the functionality of vendor folders,
but to avoid being messed up with the packages under vendors.
When running "go build -mod=vendor", the packages under the "dependencies"
folder
have higher look-up priorit
The answer is apparently
https://github.com/gin-gonic/gin/issues/2039#issuecomment-527997733
Add this to your go.mod file:
> replace github.com/ugorji/go v1.1.4 => github.com/ugorji/go
> v0.0.0-20190204201341-e444a5086c43
On Tuesday, September 10, 2019 at 2:48:25 PM UTC+2, Darko Luketic wrote:
I mean "to use the pakckages under vendor folder and from module cache at
the same time".
I have one question, is it better to add a "go mod cache-locally" command
to save the dependency modules
in a "module-cache" folder in the current project, so that "go build
-use-local-module-cache" can us
I maintain an private old Go project, which depends many many old packages.
Before the module mode, I put all these dependency packages under the
vendor folder.
In the developing process, from time to time, I modified some of dependency
packages.
Meanwhile, I plan to migrate the project to modul
What used to work pre go 1.13 now doesn't work anymore
go mod is one big mess no one needs and complicates everything
I'm now getting ambiguity. How do I resolve it?
Nothing compiles anymore
✘ darko@wrk ~/go/src/git.icod.de/dalu/socialthing master ●✚ go mod
tidy
go: extracting github.co
Hello!
I am trying to find out the best way to distribute Go bindings to a C
library. I would like to avoid asking my users to install their target gcc
because of cgo. So my idea is to avoid cgo by avoiding having my user
compiling the bindings, by therefore distributing an already compiled
pa
Hello @elias,
I tried the following:
1. Created a java class :
package reversebinding;
public class RBinding {
public static String getStringFromJava() {
return "Hello from java !!";
}
}
2. Generated the .class file for this file.
3. Generated the android binding using gomobile
21 matches
Mail list logo