From f879b3e221aa887d85eb915729ad2e4e08ee72a3 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 3 Aug 2021 15:41:43 +0300 Subject: [PATCH] ci: run gitly --- .github/workflows/ci.yml | 1 + vlib/vweb/vweb.v | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3339dcd40c..2eaad532df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -870,6 +870,7 @@ jobs: git clone --depth 1 https://github.com/vlang/gitly cd gitly ../v . + ./gitly -ci_run ../v -autofree . cd .. diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index 956e7f66e4..389689ebd0 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -100,7 +100,9 @@ struct MultiplePathAttributesError { } // declaring init_server in your App struct is optional -pub fn (ctx Context) init_server() {} +pub fn (ctx Context) init_server() { + eprintln('init_server() has been deprecated, please init your web app in `fn main()`') +} // declaring before_request in your App struct is optional pub fn (ctx Context) before_request() {} @@ -275,7 +277,6 @@ interface DbInterface { // run_app [manualfree] pub fn run(global_app &T, port int) { - // x := global_app.clone() // mut global_app := &T{} // mut app := &T{} // run_app(mut app, port) @@ -287,7 +288,9 @@ pub fn run(global_app &T, port int) { // conn: 0 //} // app.init_server() + // unsafe { // global_app.init_server() + //} //$for method in T.methods { //$if method.return_type is Result { // check routes for validity