summaryrefslogtreecommitdiffhomepage
path: root/auto/modules/go (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-29Auto: mirroring installation structure in build tree.Alejandro Colomar1-3/+3
This makes the build tree more organized, which is good for adding new stuff. Now, it's useful for example for adding manual pages in man3/, but it may be useful in the future for example for extending the build system to run linters (e.g., clang-tidy(1), Clang analyzer, ...) on the C source code. Previously, the build tree was quite flat, and looked like this (after `./configure && make`): $ tree -I src build build ├── Makefile ├── autoconf.data ├── autoconf.err ├── echo ├── libnxt.a ├── nxt_auto_config.h ├── nxt_version.h ├── unitd └── unitd.8 1 directory, 9 files And after this patch, it looks like this: $ tree -I src build build ├── Makefile ├── autoconf.data ├── autoconf.err ├── bin │ └── echo ├── include │ ├── nxt_auto_config.h │ └── nxt_version.h ├── lib │ ├── libnxt.a │ └── unit │ └── modules ├── sbin │ └── unitd ├── share │ └── man │ └── man8 │ └── unitd.8 └── var ├── lib │ └── unit ├── log │ └── unit └── run └── unit 17 directories, 9 files It also solves one issue introduced in 5a37171f733f ("Added default values for pathnames."). Before that commit, it was possible to run unitd from the build system (`./build/unitd`). Now, since it expects files in a very specific location, that has been broken. By having a directory structure that mirrors the installation, it's possible to trick it to believe it's installed, and run it from there: $ ./configure --prefix=./build $ make $ ./build/sbin/unitd Fixes: 5a37171f733f ("Added default values for pathnames.") Reported-by: Liam Crilly <liam@nginx.com> Reviewed-by: Konstantin Pavlov <thresh@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Cc: Andrei Zeliankou <zelenkov@nginx.com> Cc: Zhidao Hong <z.hong@f5.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2022-01-10Tests: using modules in Go.Max Romanov1-1/+2
2021-05-25Go: fixing tests for Go 1.16.Max Romanov1-1/+1
In Go 1.16, the module-aware mode is enabled by default; to fall back to previous behavior, the GO111MODULE environment variable should be set to 'auto'. Details: https://golang.org/doc/go1.16
2020-01-28Go: adding main configure CFLAGS and LDFLAGS to module build flags.Max Romanov1-1/+10
This makes ASAN buildbot workers to work out-of-the-box.
2019-12-25Go: changing import name for "unit.nginx.org/go".Max Romanov1-1/+1
This patch includes packaging changes - update unit-go installation directory.
2019-12-24Go: moving source files to the root of the project.Max Romanov1-1/+1
This patch includes packaging changes related to files move.
2019-12-24Go: installing go module for tests into build directory.Max Romanov1-1/+1
2019-12-24Go: linking against libunit.Max Romanov1-12/+20
2019-08-20Introducing websocket support in router and libunit.Max Romanov1-0/+1
2019-02-22Improvement and unification of version processing in build scripts.Alexander Borisov1-1/+1
This also eliminates expressions that incompatible with BSD make, thus fixing installation of Node.js module on FreeBSD (broken by dace60fc4926).
2019-01-21Go: fixed module installation, broken in ed8b1aaefdd1.Alexander Borisov1-1/+1
Added the nxt_unit_version.h dependency. This closes #214 issue on GitHub.
2018-08-06Unit application library.Max Romanov1-0/+1
Library now used in all language modules. Old 'nxt_app_*' code removed. See src/test/nxt_unit_app_test.c for usage sample.
2017-12-01Making Go package source distributable and renaming to 'nginx/unit'.Max Romanov1-22/+18
All header files are copied to Go package sources. As the result, package can be (re-)build when required. This closes #23 issue on GitHub.
2017-09-04Fixed permissions for Go sources.Andrei Belov1-1/+1
In particular, it resolves a number of errors and warnings reported by rpmlint(1).
2017-08-31Introducing install & uninstall Makefile targets.Max Romanov1-6/+12
2017-08-31Go: fixed splitting recipe line with newer gmake.Sergey Kandaurov1-2/+2
Use double quotes to quote a string with the backslash/newline pair. Newer gmake versions, such as GNU Make 4.1, do not remove the backslash from a string quoted with single quotes, which results in an extraneous backslash passed to the shell and, eventually, to the Go compiler.
2017-08-31nginext has been renamed to unit.Igor Sysoev1-8/+7
2017-08-31Moving generating CGO header file to the make stage.Igor Sysoev1-12/+13
2017-08-29The process type enum exposed to go module.Max Romanov1-1/+1
2017-08-29Using NXT_GO variable instead of explicit go.Max Romanov1-4/+4
2017-08-29Store and use NXT_LIBRT for go module.Max Romanov1-1/+1
2017-08-29Separation of module prerequisites for 'all' target in Makefile.Max Romanov1-2/+2
To avoid using sed -i.
2017-08-26Added configure and command line option --help.Igor Sysoev1-4/+14
2017-08-17The new module configuration interface.Igor Sysoev1-0/+109
Configuration and building example: ./configure ./configure python ./configure php ./configure go make all or ./configure make nginext ./configure python make python ./configure php make php ./configure go make go Modules configuration options and building examples: ./configure python --module=python2 --config=python2.7-config make python2 ./configure php --module=php7 --config=php7.0-config --lib-path=/usr/local/php7.0 make php7 ./configure go --go=go1.6 --go-path=${HOME}/go1.6 make go1.6
2017-08-17Removing auto/modules directory before commiting the new moduleIgor Sysoev2-81/+0
configuration infrastructure.
2017-08-02Added make target 'golang-nginext-install' to install precompiled go package.Max Romanov1-0/+20
2017-07-26Improved Go configure test.Igor Sysoev1-7/+10
2017-07-25Updated Go configure test.Igor Sysoev1-4/+13
2017-06-23External Go app request processing.Max Romanov2-0/+49