Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 21 22:05
    chrishulbert commented #1466
  • Aug 21 10:21
    ptman commented #1466
  • Aug 21 05:50
    chrishulbert opened #1466
  • Aug 19 02:48
    torden reopened #1462
  • Aug 19 02:48
    torden closed #1462
  • Aug 17 16:41
    notzippy commented #780
  • Aug 17 16:39
    notzippy closed #1465
  • Aug 17 16:39
    notzippy commented #1465
  • Aug 17 16:35
    notzippy commented #1464
  • Aug 10 18:50
    dtmkeng commented #1464
  • Aug 10 17:23
    notzippy commented #1464
  • Aug 09 15:36
    dtmkeng closed #1464
  • Aug 09 08:50
    yuki2006 opened #1465
  • Aug 08 17:29
    dtmkeng opened #1464
  • Aug 07 02:25
    arturcesarmelo commented #780
  • Aug 06 18:41
    jonathanbrenman opened #1463
  • Jul 19 03:33
    torden reopened #1462
  • Jul 19 03:33
    torden closed #1462
  • Jul 19 03:16
    torden commented #1462
  • Jul 19 03:16
    torden reopened #1462
Brenden Soares
@brendensoares
ah hmm
it shouldn’t be in GOPATH
I bet revel detected the GOPATH and put it there
we need to make revel aware of modules
any interest in poking around in the revel code to see where the GOPATH logic is?
lbb
@lbb4511

/home/lbb/pkg/mod/github.com/revel/cmd@v0.21.1/utils/file.go

366 revelSourcePath, appSourcePath = revelPkg.Dir[:len(revelPkg.Dir)-len(revelImportPath)], appPkgSrcDir

revelPkg.Dir= /home/lbb/pkg/mod/github.com/revel/revel@v0.21.0
revelImportPath= github.com/revel/revel

@v0.21.0’s question

Brenden Soares
@brendensoares
ya that looks familiar
lbb
@lbb4511
I'm leaving
Steve
@notzippy
Trick with modules is that in revel we have templates inside. We need a way to expose templates in modules
Moses Kurniawan
@mokalovesoulmate
Hello everyone. I am new into Golang, started immediately with Revel, currently learning with basic CRUDs. My background is PHP+Codeigniter. Cheers ;)
Steve
@notzippy
:wave:
ektmf9092
@ektmf9092

Hello. I want to solve a problem about vendoring.
After dep ensure, the packages are installed under the vendor

But go install github.com/revel/cmd/revel doens't work unlike the revel document says

I think this is related to GOPATH. There is no way to search for packages under the vendor.
How can I handle it?

Error message :
can't load package: package github.com/revel/cmd/revel: cannot find package "github.com/revel/cmd/revel" in any of:
C:\Go\src\github.com\revel\cmd\revel (from $GOROOT)
C:\GoCode\src\github.com\revel\cmd\revel (from $GOPATH)

This is the Gopkg.toml

required = ["github.com/revel/revel", "github.com/revel/modules", "github.com/revel/cmd"]

[[constraint]]
name = "github.com/revel/revel"
version = "0.21.0"

[[constraint]]
name = "github.com/revel/cmd"
version = "0.21.0"

[[constraint]]
name = "github.com/revel/modules"
version = "0.21.0"

[[constraint]]
name = "github.com/go-sql-driver/mysql"
version = "1.4.1"

[[constraint]]
name = "github.com/go-xorm/xorm"
version = "0.7.4"

[[constraint]]
name = "github.com/mattn/go-sqlite3"
version = "1.11.0"

[prune]
go-tests = true

matrixbot
@matrixbot
Paul I just don't install revel/cmd using the project dep
Paul but I do vendor revel/modules
ektmf9092
@ektmf9092
I ado vendor revel/modules. I wanna install revel/cmd. The document shows that it should work. But
Sorry for mistyping. I did vendor revel/modules.
But I really want to install revel/cmd because I want to manage the version of revel/cmd.
The document shows that it should work.
But it is not working well like I said before.
Can someone get me some advice?
image.png
matrixbot
@matrixbot
Paul when the document and reality don't agree, I trust reality
ektmf9092
@ektmf9092
hmm..
I am going to try the same thing on macOS. I hope it works.
ektmf9092
@ektmf9092
It is also not working. The same error happens(can't not find package)
Brenden Soares
@brendensoares
@notzippy knows a bit about revel’s dep management, maybe he can comment
Steve
@notzippy
Invoking my name at 1am .. tsk tsk
Revel/cmd should not have compatibility issues with older versions. At least versions after dependency management was in place 0.20
matrixbot
@matrixbot
Paul now dep is on its way out
Paul go modules support is gaining all over
Steve
@notzippy
Thanks @matrixbot paul
ektmf9092
@ektmf9092
Thanks for your interest. This is my "Gopkg.toml". It is exactly the same as the document's and it is still not working with the same error(can't not find package with go install after dep ensure). What about the dep's version? What version do I have to use? As I mentioned before, go install always searches for packages under GOPATH not including vendor, so the packages under vendor can't be found by go install. This is my opinion. I hope any suggestion will help.
스크린샷 2019-07-27 오후 12.50.25.png
If you think this is compatibility issues with older versions. Could you also let me know the Golang's version?
Chris Hulbert
@chrishulbert
Hi all, can anyone please point me in the direction of a tutorial (or docs or anything really) for getting Revel to work with AWS Elastic Beanstalk? Thanks :)
Nick Wallace
@Fyb3roptik
I am currently using it for that
what are you having an issue with?
I use it with Docker
If you send me your dockerfile i can help for sure
Chris Hulbert
@chrishulbert
Thanks for responding :) I'm not using Docker, i'm using EB in Go mode, which requires me to do a cross-compile from my desktop and upload a zip. And the generated executable can't be passed command line args. I can't get revel package to cross-compile for linux amd64, and even when not cross-compiling it generates a tarball with a format that EB won't work with, and a script to kick it off. Having said all that, i think i have a solution my modifying the tmp/main.go so i'll keep you posted if anyone's interested. Cheers all :)
Chris Hulbert
@chrishulbert
Nick Wallace
@Fyb3roptik
It is definitely much better to use Docker (from experience)
Chris Hulbert
@chrishulbert
Alright thanks for the feedback. I'll change from my solution to a proper Docker one if issues arise, thanks for letting me know :thumbsup:
Does anyone know if the session cookie is encrypted in such a way that the user cannot read it? Just wondering, cheers
Oleg Vakarev
@helgix
@chrishulbert as I remember they are saulted with secret from app.conf so by default user can see it but can’t modify , it produce error because he also need to change hash which he does not know
Chris Hulbert
@chrishulbert
Thanks, that makes sense :)
BenHarris
@BenHarris
I'm considering using Revel, but am concerned that is doesn't seem to be actively maintained any more. What's the deal?
najamsk
@najamsk
{{range .clients}}

                        <td><a href="{{url "Clients.Details" .ID}}">{{.Name}}</a></td>                       
                        <td class="p-l-5">{{.ID}}</td>                     
                        {{end}}
trying to set a href with reverse routing. also need to pass ID parameter that is of type uuid from this package. when page renders id portion is set to nil
do i need to convert id to string inside {{ url }} helper or any other trick /
Brenden Soares
@brendensoares
@BenHarris we’re around
Stephen Russell
@daflad
@najamsk looks like you may need to use a form instead
Steve
@notzippy
@BenHarris I haven't pushed a new release cause I was reworking the cli tool to work with go mod
najamsk
@najamsk

how can i invoke funcs define in a map like this.

TemplateFuncs = map[string]interface{}{
        "url": ReverseUrl,
        "set": func(renderArgs map[string]interface{}, key string, value interface{}) template.JS {
            renderArgs[key] = value
            return template.JS("")
        }}

revel.TemplateFuncs"set" fails :)