Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

#patch bug fix for use in windows #352

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

sakthi-tech4th
Copy link

Read then delete

  • Make sure to use a concise title for the pull-request.
  • Use #patch, #minor #majora or #none in the pull-request title to bump the corresponding version. Otherwise, the patch version
    will be bumped. More details

TL;DR

Please replace this text with a description of what this PR accomplishes.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

How did you fix the bug, make the feature etc. Link to any design docs etc

Tracking Issue

flyteorg/flyte#2875

Follow-up issue

NA
OR
flyteorg/flyte#2875

@EngHabu EngHabu changed the title #patch, #minor bug fix for use in windows #patch bug fix for use in windows Sep 15, 2022
@codecov
Copy link

codecov bot commented Sep 20, 2022

Codecov Report

Merging #352 (be09409) into master (5a331a4) will decrease coverage by 0.03%.
The diff coverage is 50.00%.

❗ Current head be09409 differs from pull request most recent head 9d46154. Consider uploading reports for the commit 9d46154 to get more accurate results

@@            Coverage Diff             @@
##           master     #352      +/-   ##
==========================================
- Coverage   69.62%   69.59%   -0.04%     
==========================================
  Files         140      140              
  Lines        4837     4844       +7     
==========================================
+ Hits         3368     3371       +3     
- Misses       1227     1229       +2     
- Partials      242      244       +2     
Flag Coverage Δ
unittests 69.18% <50.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/register/register_util.go 77.73% <50.00%> (-0.48%) ⬇️
cmd/get/launch_plan.go 87.14% <0.00%> (ø)
cmd/update/launch_plan.go 71.42% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Author

@sakthi-tech4th sakthi-tech4th left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shell date /t
is required when compiling on windows 11.
However, this raises a lint error.
So, reverting to original Makefile with comments

Copy link
Author

@sakthi-tech4th sakthi-tech4th left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the issue

@sbrunk
Copy link
Member

sbrunk commented Apr 21, 2023

My co-worker just ran into this when he tried to register s.th. on a windows machine (pyflyte register doesn't work on windows either due to missing fork, see flyteorg/flyte#3451).

The PR looks solid to me. Can we merge this or do we need more verification that it works?

var tempDir string
var err error
if os == "windows" {
fmt.Println("Windows Operating System Detected")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make this a logger?

tempDir, err = ioutil.TempDir("/tmp", "register")
}

/*tempDir, err := ioutil.TempDir("/tmp", "register")*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/*tempDir, err := ioutil.TempDir("/tmp", "register")*/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants