cli icon indicating copy to clipboard operation
cli copied to clipboard

can't load package : no Go files error while trying to upload and execute go binary on PCF

Open gstaware opened this issue 5 years ago • 4 comments

Please fill out the issue checklist below and provide ALL the requested information.

  • [ ] I reviewed open and closed github issues that may be related to my problem.
  • [ ] I tried updating to the latest version of the CF CLI to see if it fixed my problem.
  • [ ] I attempted to run the command with CF_TRACE=1 to help debug the issue.
  • [x] I am reporting a bug that others will be able to reproduce.
  • [ ] If this is an issue for the v7 beta release, I've read through the official docs and the release notes.

Describe the bug and the command you saw an issue with I have been trying to upload go binary to pcf as we are planning to deploy it on PCF instead of VM.

What happened While trying to use push command after login, its throwing invalid zip file error even when I have zipped that binary using tar -cvf command

Expected behavior GO binary that we are planning to deploy on PCF should be uploaded to PCF successfully.

To Reproduce Steps to reproduce the behavior; include the exact CLI commands and verbose output:

  1. cf login
  2. cf push Pushing app ..... Getting app info... zip: not a valid zip file FAILED

Provide more context

  • platform and shell details OEL 7.4 O.S.

  • version of the CLI you are running cf version 6.49.0+d0dfa93bb.2020-01-07, Cloud Foundry command line tool

  • version of the CC API Release you are on

Note: As of January 2019, we no longer support API versions older than CF Release v284/CF Deployment v1.7.0 (CAPI Release: 1.46.0 (APIs 2.100.0 and 3.35.0).

Note: In order to complete the v7 beta cf CLI in a timely matter, we develop and test against the latest CAPI release candidate. When v7 cf CLI is generally available, we will start supporting official CC API releases again.

gstaware avatar Feb 18 '20 08:02 gstaware

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/171324360

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Feb 18 '20 08:02 cf-gitbot

I could upload the app now but getting below error.

2020-02-19T07:14:28.42-0600 [STG/0] ERR can't load package: package XXXXXX: no Go files in /tmp/gobuildpack.gopath352389682/.go/src/XXXX 2020-02-19T07:14:28.42-0600 [STG/0] OUT ERROR Unable to compile application: exit status 1 2020-02-19T07:14:29.17-0600 [STG/0] ERR Failed to compile droplet: Failed to run finalize script: exit status 12

gstaware avatar Feb 19 '20 13:02 gstaware

Ping

Chackalacka0815 avatar Apr 23 '20 10:04 Chackalacka0815

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed.

github-actions[bot] avatar Sep 27 '24 17:09 github-actions[bot]