Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 05 20:23
    pdause commented #1533
  • Apr 16 17:34
    caeril opened #1533
  • Apr 04 11:42
    alexgeek commented #1528
  • Apr 03 16:19
    alexgeek commented #1528
  • Apr 03 16:19
    alexgeek commented #1528
  • Mar 30 19:15
    bejayoharen opened #1532
  • Mar 27 16:47
    notzippy closed #1531
  • Mar 27 16:47
    notzippy commented #1531
  • Mar 27 16:46
    notzippy closed #1528
  • Mar 27 16:46
    notzippy commented #1528
  • Mar 27 16:39
    notzippy closed #1529
  • Mar 25 23:02
    Dmdv opened #1531
  • Mar 24 12:19
    jsdecena commented #1528
  • Mar 24 08:48
    ptman commented #1528
  • Mar 24 02:06
    jsdecena commented #1528
  • Mar 12 20:02
    notzippy commented #1373
  • Mar 12 19:36
    parochi commented #1373
  • Mar 10 18:11
    harekumar commented #1528
  • Mar 07 14:32
    Zykatious closed #1530
  • Mar 07 14:32
    Zykatious commented #1530
Tim Goddard
@pruby
.Net calls these "Data Transfer Objects"
Erin L Ptáček
@boboTjones
That's why I brought it up. I'm tired of being an input validation janitor.
Mitsutaka Kato
@mikyk10
Hi there, is there any plan to accept/merge PRs to develop? I am willing to fix my PR if there's a problem.
Paul
@ptman:kapsi.fi
[m]
afaik yes, but notzippy and brendensoares are somewhat busy
Steve
@notzippy
Currently go1.16 is causing issues, im looking into fixing that atm
Will be happy to accept PR's as well
Paul
@ptman:kapsi.fi
[m]
notzippy, what's the problem with go1.16? I didn't notice anything yet
Steve
@notzippy
@ptman:kapsi.fi tracking it here, I just went through the steps of creating a new app and got the same error revel/revel#1528
Paul
@ptman:kapsi.fi
[m]
thanks
shadtaylor
@shadtaylor
so how is everyone auto starting the revel application on a webserver? if you reboot or shutdown the machine for maintenance you have to remember to revel run everytime? Is there a built in setting I am missing or do I have to create a startup .sh?
Paul
@ptman:kapsi.fi
[m]
systemd
and I run revel in docker as well
or the revel based app, to be more accurate
shadtaylor
@shadtaylor
k, I will try the systemd service route, as I have seen this method, just making sure I wasn't missing something
Brenden Soares
@brendensoares
I always ran it manually lol
not ideal
and prod env it's ideal to statically compile and run it
Paul
@ptman:kapsi.fi
[m]
shadtaylor, have some service manager look after it
Brenden Soares
@brendensoares
but there are many options and opinions
Paul
@ptman:kapsi.fi
[m]
whichever one you prefer
docker can autostart
systemd can autostart
supervisord is an option
use whichever you find easiest
shadtaylor
@shadtaylor
got it thansk
thanks
Garrett Flanders
@flanyanero
I would like to use revel to implement subdomain level routing. But it appears as though I can't create multiple "routers" to handle that (like labstack Echo does). Does anyone know of an example or how to do that?
would be great to finally get this added
Steve
@notzippy
@ericmoon This is fixed now
Steve
@notzippy
Issue was that go 1.16 actively removes packages from go.mod if they are not in the source tree. Not really a fan of this but what can you do ?
The fix was to add a dependency to the missing module in the init.go file like
import (
    "github.com/revel/revel"
    _ "github.com/revel/modules"

)
Caeril the Cowardly
@caeril
New revel project doesn't want to run on account of a module reference to github.com/myesui/uuid which doesn't exist
Caeril the Cowardly
@caeril
IS there any straightforward way of suppressing this "Downloading related packages" boot procedure?
Paul
@ptman:kapsi.fi
[m]
@caeril don't run from source
Make a build
Lasse Martin Jakobsen
@Pungyeon

Hello everyone, I'm completely new here and also fairly new to Revel in general. However, I've stumbled across some rather strange behaviour, which I was hoping that you could perhaps explain for me. I am running the revel test -a {PATH} command, using Revel cmd 1.0.0. However, due to working with legacy code, I have to use GO111MODULES=off. This seems to work for me fine locally, but in our Jenkins CI, something is going very wrong.

I get an initial error, which simply states that a package failed to import:

11:15:53 Downloading related packages ...ERROR 09:15:53 command_config.go:250: Failed to import package                 error="exit status 1" gopath=/var/lib/jenkins/workspace/go-api-pull-requests/go_upgrade_revel GO-ROOT=/opt/go1.14.9/go output="go: modules disabled by GO111MODULE=off; see 'go help modules'\n"

Please note the go-path gopath=/var/lib/jenkins/workspace/go-api-pull-requests/go_upgrade_revel. Immediately after this, I get the following log messages and errors:

11:15:53 WARN  09:15:53  build.go:216: Detected missing packages, importing them packages=1 
11:15:53 ERROR 09:15:53  build.go:222: Failed to import                         package=github.com/COMPANY/go-api/app/tmp 
11:15:53 ERROR 09:15:53  build.go:396: Failed to parse build errors             error="can't load package: package github.com/COMPANY/go-api/app/tmp: cannot find package \"github.com/COMPANY/go-api/app/tmp\" in any of:\n\t/opt/go1.14.9/go/src/github.com/COMPANY/go-api/app/tmp (from $GOROOT)\n\t/var/lib/jenkins/go/src/github.com/COMPANY/go-api/app/tmp (from $GOPATH)\n" 
11:15:53 ERROR 09:15:53  revel.go:107: Unable to execute                        error="Error building: [error Go Compilation Error: See console for build error.]"

In the above error message, the error details specify that it cannot find the app/tmp folder, in the GOPATH /var/lib/jenkins/go/src/github.com/COMPANY/go-api , which is not the GOPATH specified previously.

Where is revel getting this GOPATH from and is there a way of ensuring that this GOPATH is the same as the one logged in the first log message?

Thanks in advance!

Lasse Martin Jakobsen
@Pungyeon
It turns out this was a rather strange problem. Because we are migrating to go modules, we already have a go.mod file. The CMD seems to use this as indication for the configuration property Vendored. For some reason, this caused the build cmd to use the wrong GOPATH, not exactly sure why... though?
Caeril the Cowardly
@caeril

@ptman:kapsi.fi

@caeril don't run from source

I mean sure, I can build on every change, but this slows down development considerably. Shouldn't revel run just work?

Oh wait no, build also results in the same error.
mycroft_
@mycroft_:matrix.org
[m]

Hi everyone, I am testing out Swagger for our project using Revel framework. Revel constantly rebuilds the app for every changes (one of them is main.go). I'd like to ask if there's a way to modify the content of main.go?? I've been adding annotations in the template of main.go but it doesn't generates on rebuild.

Thank you in advance!

Paul
@ptman:kapsi.fi
[m]
revel clean will remove it
and then revel run will regenerate it
mycroft_
@mycroft_:matrix.org
[m]
Got it! Thank you.
Laur1nMartins
@Laur1nMartins
Hello :) Has anyone used revel as a microservice with multiple different revel programs? If yes what was used to manage the instances?
Paul
@ptman:kapsi.fi
[m]
I didn't