crossplane icon indicating copy to clipboard operation
crossplane copied to clipboard

Multiple occurrences of `No such file or directory` when running `make reviewable`

Open shreemaan-abhishek opened this issue 2 years ago • 6 comments

What happened?

I ran make reviewable as suggested by @haarchri. Then I got this error:

/bin/bash: /Users/shreemaan-abhishek/go/src/github.com/crossplane/crossplane/.cache/tools/darwin_arm64/go-junit-report: No such file or directory
17:59:51 [FAIL]

So I manually created the go-junit-report directory. I re-ran the make reviewable command, then I realised that it should have been a file because I got an error:

/bin/bash: /Users/shreemaan-abhishek/go/src/github.com/crossplane/crossplane/.cache/tools/darwin_arm64/go-junit-report: is a directory
18:09:01 [FAIL]

So I deleted the go-junit-report directory and created a file with the same name.

I ran make reviewable again, then I got this error:

/bin/bash: /Users/shreemaan-abhishek/go/src/github.com/crossplane/crossplane/.cache/tools/darwin_arm64/gocover-cobertura: No such file or directory

(not again 😮‍💨)

It would have been really neat if make reviewable would create all the files and folders that it needs instead of throwing such errors.

How can we reproduce it?

Just run make reviewable in the root of the freshly cloned copy of this project.

What environment did it happen in?

Crossplane version: NA

shreemaan-abhishek avatar May 22 '22 12:05 shreemaan-abhishek

Did you run "make" by itself after running git clone? That should set up the build environment so that everything else works.

See https://github.com/crossplane/crossplane/blob/master/CONTRIBUTING.md#establishing-a-development-environment

bobh66 avatar May 22 '22 21:05 bobh66

@bobh66 , no I had not run make before you told me to do so. So I ran make and then ran make reviewable, but I still get the error:

/bin/bash: /Users/shreemaan-abhishek/go/src/github.com/crossplane/crossplane/.cache/tools/darwin_arm64/go-junit-report: No such file or directory
08:39:29 [FAIL]

shreemaan-abhishek avatar May 25 '22 03:05 shreemaan-abhishek

@shreemaan-abhishek Try clean your make environment and start over. So make distclean && make && make reviewable.

negz avatar May 26 '22 20:05 negz

@negz Still the same error 😬

/bin/bash: /Users/shreemaan-abhishek/go/src/github.com/crossplane/crossplane/.cache/tools/darwin_arm64/go-junit-report: No such file or directory
21:00:34 [FAIL]

shreemaan-abhishek avatar May 28 '22 15:05 shreemaan-abhishek

@shreemaan-abhishek what is the output of make submodules ?

ytsarev avatar May 30 '22 13:05 ytsarev

@ytsarev

Synchronizing submodule url for 'build'

shreemaan-abhishek avatar May 31 '22 15:05 shreemaan-abhishek

Crossplane does not currently have enough maintainers to address every issue and pull request. This issue has been automatically marked as stale because it has had no activity in the last 90 days. It will be closed in 7 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

github-actions[bot] avatar Aug 30 '22 01:08 github-actions[bot]