You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
If you try to run buffalo build in this environment, it will fail. The generated buffalo_build_main.go will contain relative imports to the a, actions and grifts packages, leading to local import in non-local package errors.
Steps to Reproduce the Problem
Create a new project with buffalo new --ci-provider gitlab-ci <projectname>
Add a build step to the generated .gitlab-ci.yml consisting of a buffalo build command
Push the code to gitlab
Expected Behavior
The build should succeed.
Actual Behavior
The build fails with "local import in non-local package" errors.
Info
Please run buffalo info and paste the information below where it says "PASTE_HERE".
Pwd is /home/n/go/src/github.com/nkovacs/buffdef, not /home/n/progs/nkovacs/buffdef as reported by buffalo info. This is actually a symlink to /home/n/progs/nkovacs/buffdef, to simulate the gitlab ci environment.
Description
The .gitlab-ci.yml file generated by
buffalo new
contains a script that symlinks the build directory into the GOPATH of the golang docker image: https://github.com/gobuffalo/buffalo/blob/c1594b9651f1e85c5f3f599c07a23ce8b1468405/genny/ci/templates/-dot-gitlab-ci.yml.tmpl#L7If you try to run buffalo build in this environment, it will fail. The generated buffalo_build_main.go will contain relative imports to the
a
,actions
andgrifts
packages, leading to local import in non-local package errors.Steps to Reproduce the Problem
buffalo new --ci-provider gitlab-ci <projectname>
buffalo build
commandExpected Behavior
The build should succeed.
Actual Behavior
The build fails with "local import in non-local package" errors.
Info
Please run
buffalo info
and paste the information below where it says "PASTE_HERE".Pwd is
/home/n/go/src/github.com/nkovacs/buffdef
, not/home/n/progs/nkovacs/buffdef
as reported by buffalo info. This is actually a symlink to/home/n/progs/nkovacs/buffdef
, to simulate the gitlab ci environment.The text was updated successfully, but these errors were encountered: